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,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a dragon corpse" )]
public class AncientWyrm : BaseCreature
{
public override string DefaultName { get { return "an ancient wyrm"; } }
[Constructible]
public AncientWyrm () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "an ancient wyrm";
Body = 46;
BaseSoundID = 362;
@ -60,18 +61,18 @@ namespace Server.Mobiles
return 0x2D1;
}
public override bool ReacquireOnMovement{ get{ return true; } }
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool AutoDispel{ get{ return true; } }
public override bool ReacquireOnMovement => true;
public override bool HasBreath => true; // fire breath enabled
public override bool AutoDispel => true;
public override HideType HideType{ get{ return HideType.Barbed; } }
public override int Hides{ get{ return 40; } }
public override int Meat{ get{ return 19; } }
public override int Scales{ get{ return 12; } }
public override ScaleType ScaleType{ get{ return (ScaleType)Utility.Random( 4 ); } }
public override Poison PoisonImmune{ get{ return Poison.Regular; } }
public override Poison HitPoison{ get{ return Utility.RandomBool() ? Poison.Lesser : Poison.Regular; } }
public override Poison PoisonImmune => Poison.Regular;
public override Poison HitPoison => Utility.RandomBool() ? Poison.Lesser : Poison.Regular;
public override int TreasureMapLevel{ get{ return 5; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public AncientWyrm( Serial serial ) : base( serial )
{
@ -89,4 +90,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a deep sea serpents corpse" )]
public class DeepSeaSerpent : BaseCreature
{
public override string DefaultName { get { return "a deep sea serpent"; } }
[Constructible]
public DeepSeaSerpent() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a deep sea serpent";
Body = 150;
BaseSoundID = 447;
@ -56,7 +57,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Meager );
}
public override bool HasBreath{ get{ return true; } }
public override bool HasBreath => true;
public override int Meat{ get{ return 1; } }
public override int Scales{ get{ return 8; } }
public override ScaleType ScaleType{ get{ return ScaleType.Blue; } }
@ -77,4 +78,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a dragon corpse" )]
public class Dragon : BaseCreature
{
public override string DefaultName => "a dragon";
[Constructible]
public Dragon () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a dragon";
Body = Utility.RandomList( 12, 59 );
BaseSoundID = 362;
@ -52,9 +53,9 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 8 );
}
public override bool ReacquireOnMovement{ get{ return !Controlled; } }
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool AutoDispel{ get{ return !Controlled; } }
public override bool ReacquireOnMovement => !Controlled;
public override bool HasBreath => true; // fire breath enabled
public override bool AutoDispel => !Controlled;
public override int TreasureMapLevel{ get{ return 4; } }
public override int Meat{ get{ return 19; } }
public override int Hides{ get{ return 20; } }
@ -62,8 +63,8 @@ namespace Server.Mobiles
public override int Scales{ get{ return 7; } }
public override ScaleType ScaleType{ get{ return ( Body == 12 ? ScaleType.Yellow : ScaleType.Red ); } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override bool CanAngerOnTame { get { return true; } }
public override bool CanFly { get { return true; } }
public override bool CanAngerOnTame => true;
public override bool CanFly => true;
public Dragon( Serial serial ) : base( serial )
{
@ -81,4 +82,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -16,6 +16,8 @@ namespace Server.Mobiles
set{ m_Fisher = value; }
}
public override string DefaultName => "a leviathan";
[Constructible]
public Leviathan() : this( null )
{
@ -27,7 +29,6 @@ namespace Server.Mobiles
m_Fisher = fisher;
// May not be OSI accurate; mostly copied from krakens
Name = "a leviathan";
Body = 77;
BaseSoundID = 353;
@ -76,7 +77,7 @@ namespace Server.Mobiles
PackItem( rope );
}
public override bool HasBreath{ get{ return true; } }
public override bool HasBreath => true;
public override int BreathPhysicalDamage{ get{ return 70; } } // TODO: Verify damage type
public override int BreathColdDamage{ get{ return 30; } }
public override int BreathFireDamage{ get{ return 0; } }
@ -179,4 +180,4 @@ namespace Server.Mobiles
m_Fisher = null;
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "an ophidian corpse" )]
public class OphidianMatriarch : BaseCreature
{
public override string DefaultName => "an ophidian matriarch";
[Constructible]
public OphidianMatriarch() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "an ophidian matriarch";
Body = 87;
BaseSoundID = 644;
@ -50,7 +51,7 @@ namespace Server.Mobiles
AddLoot( LootPack.MedScrolls, 2 );
}
public override Poison PoisonImmune{ get{ return Poison.Greater; } }
public override Poison PoisonImmune => Poison.Greater;
public override int TreasureMapLevel{ get{ return 4; } }
public override OppositionGroup OppositionGroup
@ -74,4 +75,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Seaserpant" )]
public class SeaSerpent : BaseCreature
{
public override string DefaultName => "a sea serpent";
[Constructible]
public SeaSerpent() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a sea serpent";
Body = 150;
BaseSoundID = 447;
@ -59,7 +60,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Meager );
}
public override bool HasBreath{ get{ return true; } }
public override bool HasBreath => true;
public override int TreasureMapLevel{ get{ return 2; } }
public override int Hides{ get{ return 10; } }
@ -83,4 +84,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a dragon corpse" )]
public class SerpentineDragon : BaseCreature
{
public override string DefaultName => "a serpentine dragon";
[Constructible]
public SerpentineDragon() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
{
Name = "a serpentine dragon";
Body = 103;
BaseSoundID = 362;
@ -78,11 +79,11 @@ namespace Server.Mobiles
return 0x2C3;
}
public override bool ReacquireOnMovement{ get{ return true; } }
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool ReacquireOnMovement => true;
public override bool HasBreath => true; // fire breath enabled
public override double BonusPetDamageScalar{ get{ return (Core.SE) ? 3.0 : 1.0; } }
public override bool AutoDispel{ get{ return true; } }
public override bool AutoDispel => true;
public override HideType HideType{ get{ return HideType.Barbed; } }
public override int Hides{ get{ return 20; } }
public override int Meat{ get{ return 19; } }
@ -123,4 +124,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a shadow wyrm corpse" )]
public class ShadowWyrm : BaseCreature
{
public override string DefaultName => "a shadow wyrm";
[Constructible]
public ShadowWyrm() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a shadow wyrm";
Body = 106;
BaseSoundID = 362;
@ -60,11 +61,11 @@ namespace Server.Mobiles
return 0x2D1;
}
public override bool ReacquireOnMovement{ get{ return true; } }
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool AutoDispel{ get{ return true; } }
public override Poison PoisonImmune{ get{ return Poison.Deadly; } }
public override Poison HitPoison{ get{ return Poison.Deadly; } }
public override bool ReacquireOnMovement => true;
public override bool HasBreath => true; // fire breath enabled
public override bool AutoDispel => true;
public override Poison PoisonImmune => Poison.Deadly;
public override Poison HitPoison => Poison.Deadly;
public override int TreasureMapLevel{ get{ return 5; } }
public override int Meat{ get{ return 19; } }
@ -72,7 +73,7 @@ namespace Server.Mobiles
public override int Scales{ get{ return 10; } }
public override ScaleType ScaleType{ get{ return ScaleType.Black; } }
public override HideType HideType{ get{ return HideType.Barbed; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public ShadowWyrm( Serial serial ) : base( serial )
{
@ -90,4 +91,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a skeletal dragon corpse" )]
public class SkeletalDragon : BaseCreature
{
public override string DefaultName => "a skeletal dragon";
[Constructible]
public SkeletalDragon () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a skeletal dragon";
Body = 104;
BaseSoundID = 0x488;
@ -51,17 +52,17 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 5 );
}
public override bool ReacquireOnMovement{ get{ return true; } }
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool ReacquireOnMovement => true;
public override bool HasBreath => true; // fire breath enabled
public override int BreathFireDamage{ get{ return 0; } }
public override int BreathColdDamage{ get{ return 100; } }
public override int BreathEffectHue{ get{ return 0x480; } }
public override double BonusPetDamageScalar{ get{ return (Core.SE)? 3.0 : 1.0; } }
// TODO: Undead summoning?
public override bool AutoDispel{ get{ return true; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override bool BleedImmune{ get{ return true; } }
public override bool AutoDispel => true;
public override Poison PoisonImmune => Poison.Lethal;
public override bool BleedImmune => true;
public override int Meat{ get{ return 19; } } // where's it hiding these? :)
public override int Hides{ get{ return 20; } }
public override HideType HideType{ get{ return HideType.Barbed; } }
@ -82,4 +83,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,11 +7,12 @@ namespace Server.Mobiles
[CorpseName( "a white wyrm corpse" )]
public class WhiteWyrm : BaseCreature
{
public override string DefaultName => "a white wyrm";
[Constructible]
public WhiteWyrm() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Body = Utility.RandomBool() ? 180 : 49;
Name = "a white wyrm";
BaseSoundID = 362;
SetStr( 721, 760 );
@ -54,7 +55,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, Utility.Random( 1, 5 ) );
}
public override bool ReacquireOnMovement{ get{ return true; } }
public override bool ReacquireOnMovement => true;
public override int TreasureMapLevel{ get{ return 4; } }
public override int Meat{ get{ return 19; } }
public override int Hides{ get{ return 20; } }
@ -62,8 +63,8 @@ namespace Server.Mobiles
public override int Scales{ get{ return 9; } }
public override ScaleType ScaleType{ get{ return ScaleType.White; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Gold; } }
public override bool CanAngerOnTame { get { return true; } }
public override bool CanFly { get { return true; } }
public override bool CanAngerOnTame => true;
public override bool CanFly => true;
public WhiteWyrm( Serial serial ) : base( serial )
{
@ -81,4 +82,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a drake corpse" )]
public class Drake : BaseCreature
{
public override string DefaultName => "a drake";
[Constructible]
public Drake () : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a drake";
Body = Utility.RandomList( 60, 61 );
BaseSoundID = 362;
@ -53,8 +54,8 @@ namespace Server.Mobiles
AddLoot( LootPack.MedScrolls, 2 );
}
public override bool ReacquireOnMovement{ get{ return true; } }
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool ReacquireOnMovement => true;
public override bool HasBreath => true; // fire breath enabled
public override int TreasureMapLevel{ get{ return 2; } }
public override int Meat{ get{ return 10; } }
public override int Hides{ get{ return 20; } }
@ -62,7 +63,7 @@ namespace Server.Mobiles
public override int Scales{ get{ return 2; } }
public override ScaleType ScaleType{ get{ return ( Body == 60 ? ScaleType.Yellow : ScaleType.Red ); } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Fish; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public Drake( Serial serial ) : base( serial )
{
@ -80,4 +81,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -8,10 +8,10 @@ namespace Server.Mobiles
[CorpseName( "a harpy corpse" )]
public class Harpy : BaseCreature
{
public override string DefaultName => "a harpy";
[Constructible]
public Harpy() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a harpy";
Body = 30;
BaseSoundID = 402;
@ -71,11 +71,11 @@ namespace Server.Mobiles
return 918;
}
public override bool CanRummageCorpses{ get{ return true; } }
public override bool CanRummageCorpses => true;
public override int Meat{ get{ return 4; } }
public override MeatType MeatType{ get{ return MeatType.Bird; } }
public override int Feathers{ get{ return 50; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public Harpy( Serial serial ) : base( serial )
{
@ -93,4 +93,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[CorpseName( "a krakens corpse" )]
public class Kraken : BaseCreature
{
public override string DefaultName => "a kraken";
[Constructible]
public Kraken() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a kraken";
Body = 77;
BaseSoundID = 353;

View file

@ -49,7 +49,7 @@ namespace Server.Mobiles
// TODO: weapon
}
public override bool CanRummageCorpses{ get{ return true; } }
public override bool CanRummageCorpses => true;
public override int Meat{ get{ return 1; } }
public override int Hides{ get{ return 12; } }
public override HideType HideType{ get{ return HideType.Spined; } }
@ -70,4 +70,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -59,8 +59,8 @@ namespace Server.Mobiles
public override int Meat{ get{ return 2; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override Poison HitPoison{ get{ return Poison.Lethal; } }
public override Poison PoisonImmune => Poison.Lethal;
public override Poison HitPoison => Poison.Lethal;
public override int TreasureMapLevel{ get{ return 3; } }
public override OppositionGroup OppositionGroup
@ -84,4 +84,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[CorpseName( "a scorpion corpse" )]
public class Scorpion : BaseCreature
{
public override string DefaultName => "a scorpion";
[Constructible]
public Scorpion() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a scorpion";
Body = 48;
BaseSoundID = 397;
@ -58,8 +59,8 @@ namespace Server.Mobiles
public override int Meat{ get{ return 1; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override PackInstinct PackInstinct{ get{ return PackInstinct.Arachnid; } }
public override Poison PoisonImmune{ get{ return Poison.Greater; } }
public override Poison HitPoison{ get{ return (0.8 >= Utility.RandomDouble() ? Poison.Greater : Poison.Deadly); } }
public override Poison PoisonImmune => Poison.Greater;
public override Poison HitPoison => (0.8 >= Utility.RandomDouble() ? Poison.Greater : Poison.Deadly);
public Scorpion( Serial serial ) : base( serial )
{
@ -77,4 +78,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[CorpseName( "a stone harpy corpse" )]
public class StoneHarpy : BaseCreature
{
public override string DefaultName => "a stone harpy";
[Constructible]
public StoneHarpy() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a stone harpy";
Body = 73;
BaseSoundID = 402;
@ -76,7 +77,7 @@ namespace Server.Mobiles
public override int Meat{ get{ return 1; } }
public override int Feathers{ get{ return 50; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public StoneHarpy( Serial serial ) : base( serial )
{
@ -94,4 +95,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a wyvern corpse" )]
public class Wyvern : BaseCreature
{
public override string DefaultName => "a wyvern";
[Constructible]
public Wyvern () : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a wyvern";
Body = 62;
BaseSoundID = 362;
@ -50,16 +51,16 @@ namespace Server.Mobiles
AddLoot( LootPack.MedScrolls );
}
public override bool ReacquireOnMovement{ get{ return true; } }
public override bool ReacquireOnMovement => true;
public override Poison PoisonImmune{ get{ return Poison.Deadly; } }
public override Poison HitPoison{ get{ return Poison.Deadly; } }
public override Poison PoisonImmune => Poison.Deadly;
public override Poison HitPoison => Poison.Deadly;
public override int TreasureMapLevel{ get{ return 2; } }
public override int Meat{ get{ return 10; } }
public override int Hides{ get{ return 20; } }
public override HideType HideType{ get{ return HideType.Horned; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public override int GetAttackSound()
{
@ -102,4 +103,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}