Add DefaultName property to Mobiles & Items (#18)

This commit is contained in:
Kamron Batman 2018-08-09 17:18:41 -07:00 • committed by GitHub
parent b06f5bf60d
commit 8ee42c8ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
713 changed files with 5112 additions and 4987 deletions

View file

@ -7,6 +7,8 @@ namespace Server.Mobiles
[CorpseName( "an ore elemental corpse" )]
public class AgapiteElemental : BaseCreature
{
public override string DefaultName{ get { return "an agapite elemental"; } }
[Constructible]
public AgapiteElemental() : this( 2 )
{
@ -15,7 +17,6 @@ namespace Server.Mobiles
[Constructible]
public AgapiteElemental( int oreAmount ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "an agapite elemental";
Body = 107;
BaseSoundID = 268;
@ -55,8 +56,8 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 2 );
}
public override bool BleedImmune{ get{ return true; } }
public override bool AutoDispel{ get{ return true; } }
public override bool BleedImmune => true;
public override bool AutoDispel => true;
public override int TreasureMapLevel{ get{ return 1; } }
public AgapiteElemental( Serial serial ) : base( serial )
@ -75,4 +76,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,6 +7,8 @@ namespace Server.Mobiles
[CorpseName( "an ore elemental corpse" )]
public class BronzeElemental : BaseCreature
{
public override string DefaultName { get { return "a bronze elemental"; } }
[Constructible]
public BronzeElemental() : this( 2 )
{
@ -16,7 +18,6 @@ namespace Server.Mobiles
public BronzeElemental( int oreAmount ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
// TODO: Gas attack
Name = "a bronze elemental";
Body = 108;
BaseSoundID = 268;
@ -57,8 +58,8 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 2 );
}
public override bool BleedImmune{ get{ return true; } }
public override bool AutoDispel{ get{ return true; } }
public override bool BleedImmune => true;
public override bool AutoDispel => true;
public override int TreasureMapLevel{ get{ return 1; } }
public BronzeElemental( Serial serial ) : base( serial )
@ -77,4 +78,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,6 +7,8 @@ namespace Server.Mobiles
[CorpseName( "an ore elemental corpse" )]
public class CopperElemental : BaseCreature
{
public override string DefaultName { get { return "a copper elemental"; } }
[Constructible]
public CopperElemental() : this( 2 )
{
@ -15,7 +17,6 @@ namespace Server.Mobiles
[Constructible]
public CopperElemental( int oreAmount ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a copper elemental";
Body = 109;
BaseSoundID = 268;
@ -55,8 +56,8 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 2 );
}
public override bool BleedImmune{ get{ return true; } }
public override bool AutoDispel{ get{ return true; } }
public override bool BleedImmune => true;
public override bool AutoDispel => true;
public override int TreasureMapLevel{ get{ return 1; } }
public override void CheckReflect( Mobile caster, ref bool reflect )
@ -80,4 +81,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,6 +7,8 @@ namespace Server.Mobiles
[CorpseName( "an ore elemental corpse" )]
public class DullCopperElemental : BaseCreature
{
public override string DefaultName => "a dull copper elemental";
[Constructible]
public DullCopperElemental() : this( 2 )
{
@ -15,7 +17,6 @@ namespace Server.Mobiles
[Constructible]
public DullCopperElemental( int oreAmount ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a dull copper elemental";
Body = 110;
BaseSoundID = 268;
@ -55,8 +56,8 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 2 );
}
public override bool AutoDispel{ get{ return true; } }
public override bool BleedImmune{ get{ return true; } }
public override bool AutoDispel => true;
public override bool BleedImmune => true;
public override int TreasureMapLevel{ get{ return 1; } }
public DullCopperElemental( Serial serial ) : base( serial )
@ -75,4 +76,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,6 +7,8 @@ namespace Server.Mobiles
[CorpseName( "an ore elemental corpse" )]
public class GoldenElemental : BaseCreature
{
public override string DefaultName => "a golden elemental";
[Constructible]
public GoldenElemental() : this( 2 )
{
@ -15,7 +17,6 @@ namespace Server.Mobiles
[Constructible]
public GoldenElemental( int oreAmount ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a golden elemental";
Body = 166;
BaseSoundID = 268;
@ -55,8 +56,8 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 2 );
}
public override bool AutoDispel{ get{ return true; } }
public override bool BleedImmune{ get{ return true; } }
public override bool AutoDispel => true;
public override bool BleedImmune => true;
public override int TreasureMapLevel{ get{ return 1; } }
public GoldenElemental( Serial serial ) : base( serial )
@ -75,4 +76,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,6 +7,8 @@ namespace Server.Mobiles
[CorpseName( "an ore elemental corpse" )]
public class ShadowIronElemental : BaseCreature
{
public override string DefaultName => "a shadow iron elemental";
[Constructible]
public ShadowIronElemental() : this( 2 )
{
@ -15,7 +17,6 @@ namespace Server.Mobiles
[Constructible]
public ShadowIronElemental( int oreAmount ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a shadow iron elemental";
Body = 111;
BaseSoundID = 268;
@ -55,11 +56,11 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 2 );
}
public override bool AutoDispel{ get{ return true; } }
public override bool BleedImmune{ get{ return true; } }
public override bool AutoDispel => true;
public override bool BleedImmune => true;
public override int TreasureMapLevel{ get{ return 1; } }
public override Poison PoisonImmune{ get{ return Poison.Deadly; } }
public override bool BreathImmune{ get{ return true; } }
public override Poison PoisonImmune => Poison.Deadly;
public override bool BreathImmune => true;
public override void AlterMeleeDamageFrom( Mobile from, ref int damage )
{
@ -76,7 +77,7 @@ namespace Server.Mobiles
{
scalar = 0.0; // Immune to magic
}
public override void AlterSpellDamageFrom( Mobile from, ref int damage )
{
damage = 0;
@ -98,4 +99,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,6 +7,8 @@ namespace Server.Mobiles
[CorpseName( "an ore elemental corpse" )]
public class ValoriteElemental : BaseCreature
{
public override string DefaultName => "a valorite elemental";
[Constructible]
public ValoriteElemental() : this( 2 )
{
@ -16,7 +18,6 @@ namespace Server.Mobiles
public ValoriteElemental( int oreAmount ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
// TODO: Gas attack
Name = "a valorite elemental";
Body = 112;
BaseSoundID = 268;
@ -59,8 +60,8 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 4 );
}
public override bool AutoDispel{ get{ return true; } }
public override bool BleedImmune{ get{ return true; } }
public override bool AutoDispel => true;
public override bool BleedImmune => true;
public override int TreasureMapLevel{ get{ return 1; } }
public override void AlterMeleeDamageFrom( Mobile from, ref int damage )
@ -95,4 +96,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,6 +7,8 @@ namespace Server.Mobiles
[CorpseName( "an ore elemental corpse" )]
public class VeriteElemental : BaseCreature
{
public override string DefaultName => "a verite elemental";
[Constructible]
public VeriteElemental() : this( 2 )
{
@ -15,7 +17,6 @@ namespace Server.Mobiles
[Constructible]
public VeriteElemental( int oreAmount ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a verite elemental";
Body = 113;
BaseSoundID = 268;
@ -56,8 +57,8 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 2 );
}
public override bool AutoDispel{ get{ return true; } }
public override bool BleedImmune{ get{ return true; } }
public override bool AutoDispel => true;
public override bool BleedImmune => true;
public override int TreasureMapLevel{ get{ return 1; } }
public VeriteElemental( Serial serial ) : base( serial )
@ -76,4 +77,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}