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
[TypeAlias( "Server.Mobiles.Bear" )]
public class BlackBear : BaseCreature
{
public override string DefaultName => "a black bear";
[Constructible]
public BlackBear() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a black bear";
Body = 211;
BaseSoundID = 0xA3;
@ -66,4 +67,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a bear corpse" )]
public class BrownBear : BaseCreature
{
public override string DefaultName => "a brown bear";
[Constructible]
public BrownBear() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a brown bear";
Body = 167;
BaseSoundID = 0xA3;
@ -65,4 +66,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Grizzlybear" )]
public class GrizzlyBear : BaseCreature
{
public override string DefaultName => "a grizzly bear";
[Constructible]
public GrizzlyBear() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a grizzly bear";
Body = 212;
BaseSoundID = 0xA3;
@ -67,4 +68,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Polarbear" )]
public class PolarBear : BaseCreature
{
public override string DefaultName => "a polar bear";
[Constructible]
public PolarBear() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a polar bear";
Body = 213;
BaseSoundID = 0xA3;
@ -67,4 +68,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a chicken corpse" )]
public class Chicken : BaseCreature
{
public override string DefaultName => "a chicken";
[Constructible]
public Chicken() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a chicken";
Body = 0xD0;
BaseSoundID = 0x6E;
@ -43,7 +44,7 @@ namespace Server.Mobiles
public override int Meat{ get{ return 1; } }
public override MeatType MeatType{ get{ return MeatType.Bird; } }
public override FoodType FavoriteFood{ get{ return FoodType.GrainsAndHay; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public override int Feathers{ get{ return 25; } }
@ -65,4 +66,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,14 @@ using Server.Mobiles;
namespace Server.Mobiles
{
[CorpseName( "a crane corpse" )]
[CorpseName( "a bird corpse" )]
public class Crane : BaseCreature
{
public override string DefaultName => "a crane";
[Constructible]
public Crane() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a crane";
Body = 254;
BaseSoundID = 0x4D7;
@ -83,4 +84,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -4,13 +4,14 @@ using Server.Mobiles;
namespace Server.Mobiles
{
[CorpseName( "an eagle corpse" )]
[CorpseName( "a bird corpse" )]
public class Eagle : BaseCreature
{
public override string DefaultName => "an eagle";
[Constructible]
public Eagle() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "an eagle";
Body = 5;
BaseSoundID = 0x2EE;
@ -49,7 +50,7 @@ namespace Server.Mobiles
public override MeatType MeatType{ get{ return MeatType.Bird; } }
public override int Feathers{ get{ return 36; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Fish; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public Eagle(Serial serial) : base(serial)
{
@ -69,4 +70,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a phoenix corpse" )]
public class Phoenix : BaseCreature
{
public override string DefaultName => "a phoenix";
[Constructible]
public Phoenix() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a phoenix";
Body = 5;
Hue = 0x674;
BaseSoundID = 0x8F;
@ -53,7 +54,7 @@ namespace Server.Mobiles
public override int Meat{ get{ return 1; } }
public override MeatType MeatType{ get{ return MeatType.Bird; } }
public override int Feathers{ get{ return 36; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public Phoenix( Serial serial ) : base( serial )
{
@ -71,4 +72,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Direwolf" )]
public class DireWolf : BaseCreature
{
public override string DefaultName => "a dire wolf";
[Constructible]
public DireWolf() : base( AIType.AI_Melee,FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a dire wolf";
Body = 23;
BaseSoundID = 0xE5;
@ -69,4 +70,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Greywolf" )]
public class GreyWolf : BaseCreature
{
public override string DefaultName => "a grey wolf";
[Constructible]
public GreyWolf() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a grey wolf";
Body = Utility.RandomList( 25, 27 );
BaseSoundID = 0xE5;
@ -68,4 +69,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Timberwolf" )]
public class TimberWolf : BaseCreature
{
public override string DefaultName => "a timber wolf";
[Constructible]
public TimberWolf() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a timber wolf";
Body = 225;
BaseSoundID = 0xE5;
@ -68,4 +69,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Whitewolf" )]
public class WhiteWolf : BaseCreature
{
public override string DefaultName => "a white wolf";
[Constructible]
public WhiteWolf() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a white wolf";
Body = Utility.RandomList( 34, 37 );
BaseSoundID = 0xE5;
@ -68,4 +69,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a bull corpse" )]
public class Bull : BaseCreature
{
public override string DefaultName => "a bull";
[Constructible]
public Bull() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a bull";
Body = Utility.RandomList( 0xE8, 0xE9 );
BaseSoundID = 0x64;
@ -67,4 +68,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -24,10 +24,11 @@ namespace Server.Mobiles
set { m_Milk = value; }
}
public override string DefaultName => "a cow";
[Constructible]
public Cow() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a cow";
Body = Utility.RandomList( 0xD8, 0xE7 );
BaseSoundID = 0x78;
@ -136,4 +137,4 @@ namespace Server.Mobiles
}
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a cougar corpse" )]
public class Cougar : BaseCreature
{
public override string DefaultName => "a cougar";
[Constructible]
public Cougar() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a cougar";
Body = 63;
BaseSoundID = 0x73;
@ -66,4 +67,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Hellcat" )]
public class HellCat : BaseCreature
{
public override string DefaultName => "a hell cat";
[Constructible]
public HellCat() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a hell cat";
Body = 0xC9;
Hue = Utility.RandomList( 0x647, 0x650, 0x659, 0x662, 0x66B, 0x674);
BaseSoundID = 0x69;
@ -50,7 +51,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Meager );
}
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool HasBreath => true; // fire breath enabled
public override int Hides{ get{ return 10; } }
public override HideType HideType{ get{ return HideType.Spined; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
@ -74,4 +75,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a panther corpse" )]
public class Panther : BaseCreature
{
public override string DefaultName => "a panther";
[Constructible]
public Panther() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a panther";
Body = 0xD6;
Hue = 0x901;
BaseSoundID = 0x462;
@ -67,4 +68,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Preditorhellcat" )]
public class PredatorHellCat : BaseCreature
{
public override string DefaultName => "a hell cat";
[Constructible]
public PredatorHellCat() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a hell cat";
Body = 127;
BaseSoundID = 0xBA;
@ -48,7 +49,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Average );
}
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool HasBreath => true; // fire breath enabled
public override int Hides{ get{ return 10; } }
public override HideType HideType{ get{ return HideType.Spined; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
@ -72,4 +73,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Snowleopard" )]
public class SnowLeopard : BaseCreature
{
public override string DefaultName => "a snow leopard";
[Constructible]
public SnowLeopard() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a snow leopard";
Body = Utility.RandomList( 64, 65 );
BaseSoundID = 0x73;
@ -68,4 +69,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a pig corpse" )]
public class Boar : BaseCreature
{
public override string DefaultName => "a boar";
[Constructible]
public Boar() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a boar";
Body = 0x122;
BaseSoundID = 0xC4;
@ -63,4 +64,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Bullfrog" )]
public class BullFrog : BaseCreature
{
public override string DefaultName => "a bull frog";
[Constructible]
public BullFrog() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a bull frog";
Body = 81;
Hue = Utility.RandomList( 0x5AC,0x5A3,0x59A,0x591,0x588,0x57F );
BaseSoundID = 0x266;
@ -69,4 +70,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,11 +6,12 @@ namespace Server.Mobiles
[CorpseName( "a dolphin corpse" )]
public class Dolphin : BaseCreature
{
public override string DefaultName => "a dolphin";
[Constructible]
public Dolphin()
: base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a dolphin";
Body = 0x97;
BaseSoundID = 0x8A;
@ -85,4 +86,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a gaman corpse" )]
public class Gaman : BaseCreature
{
public override string DefaultName => "a gaman";
[Constructible]
public Gaman() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a gaman";
Body = 248;
SetStr( 146, 175 );

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Gianttoad" )]
public class GiantToad : BaseCreature
{
public override string DefaultName => "a giant toad";
[Constructible]
public GiantToad() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a giant toad";
Body = 80;
BaseSoundID = 0x26B;
@ -75,4 +76,4 @@ namespace Server.Mobiles
}
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a goat corpse" )]
public class Goat : BaseCreature
{
public override string DefaultName => "a goat";
[Constructible]
public Goat() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a goat";
Body = 0xD1;
BaseSoundID = 0x99;
@ -62,4 +63,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a gorilla corpse" )]
public class Gorilla : BaseCreature
{
public override string DefaultName => "a gorilla";
[Constructible]
public Gorilla() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a gorilla";
Body = 0x1D;
BaseSoundID = 0x9E;
@ -64,4 +65,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Greathart" )]
public class GreatHart : BaseCreature
{
public override string DefaultName => "a great hart";
[Constructible]
public GreatHart() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a great hart";
Body = 0xEA;
SetStr( 41, 71 );
@ -49,20 +50,20 @@ namespace Server.Mobiles
{
}
public override int GetAttackSound()
{
return 0x82;
}
public override int GetAttackSound()
{
return 0x82;
}
public override int GetHurtSound()
{
return 0x83;
}
public override int GetHurtSound()
{
return 0x83;
}
public override int GetDeathSound()
{
return 0x84;
}
public override int GetDeathSound()
{
return 0x84;
}
public override void Serialize(GenericWriter writer)
{
@ -78,4 +79,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a deer corpse" )]
public class Hind : BaseCreature
{
public override string DefaultName => "a hind";
[Constructible]
public Hind() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a hind";
Body = 0xED;
SetStr( 21, 51 );
@ -48,20 +49,20 @@ namespace Server.Mobiles
{
}
public override int GetAttackSound()
{
return 0x82;
}
public override int GetAttackSound()
{
return 0x82;
}
public override int GetHurtSound()
{
return 0x83;
}
public override int GetHurtSound()
{
return 0x83;
}
public override int GetDeathSound()
{
return 0x84;
}
public override int GetDeathSound()
{
return 0x84;
}
public override void Serialize(GenericWriter writer)
{
@ -77,4 +78,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a llama corpse" )]
public class Llama : BaseCreature
{
public override string DefaultName => "a llama";
[Constructible]
public Llama() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a llama";
Body = 0xDC;
BaseSoundID = 0x3F3;
@ -62,4 +63,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a mountain goat corpse" )]
public class MountainGoat : BaseCreature
{
public override string DefaultName => "a mountain goat";
[Constructible]
public MountainGoat() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a mountain goat";
Body = 88;
BaseSoundID = 0x99;
@ -66,4 +67,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -10,10 +10,11 @@ namespace Server.Mobiles
[CorpseName( "a horse corpse" )]
public class PackHorse : BaseCreature
{
public override string DefaultName => "a pack horse";
[Constructible]
public PackHorse() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a pack horse";
Body = 291;
BaseSoundID = 0xA8;
@ -219,4 +220,4 @@ namespace Server.Mobiles
from.Use( item );
}
}
}
}

View file

@ -9,10 +9,11 @@ namespace Server.Mobiles
[CorpseName("a llama corpse")]
public class PackLlama : BaseCreature
{
public override string DefaultName => "a pack llama";
[Constructible]
public PackLlama() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a pack llama";
Body = 292;
BaseSoundID = 0x3F3;
@ -140,4 +141,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a pig corpse" )]
public class Pig : BaseCreature
{
public override string DefaultName => "a pig";
[Constructible]
public Pig() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a pig";
Body = 0xCB;
BaseSoundID = 0xC4;
@ -61,4 +62,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -39,10 +39,11 @@ namespace Server.Mobiles
Body = ( DateTime.UtcNow >= m_NextWoolTime ) ? 0xCF : 0xDF;
}
public override string DefaultName => "a sheep";
[Constructible]
public Sheep() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a sheep";
Body = 0xCF;
BaseSoundID = 0xD6;
@ -108,4 +109,4 @@ namespace Server.Mobiles
}
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a walrus corpse" )]
public class Walrus : BaseCreature
{
public override string DefaultName => "a walrus";
[Constructible]
public Walrus() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a walrus";
Body = 0xDD;
BaseSoundID = 0xE0;
@ -66,4 +67,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -18,8 +18,8 @@ namespace Server.Mobiles
{
}
public override bool SubdueBeforeTame{ get{ return true; } } // Must be beaten into submission
public override bool ReduceSpeedWithDamage{ get{ return false; } }
public override bool SubdueBeforeTame => true; // Must be beaten into submission
public override bool ReduceSpeedWithDamage => false;
[Constructible]
public Beetle( string name ) : base( name, 0x317, 0x3EBC, AIType.AI_Melee, FightMode.Closest, 10, 1, 0.25, 0.5 )
@ -175,4 +175,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -102,7 +102,7 @@ namespace Server.Mobiles
{
}
public override bool DisplayLootType { get { return false; } }
public override bool DisplayLootType => false;
public virtual int FollowerSlots { get { return 1; } }
@ -367,8 +367,8 @@ namespace Server.Mobiles
m_Mount = mount;
}
public override bool ClearHandsOnCast { get { return false; } }
public override bool RevealOnCast { get { return false; } }
public override bool ClearHandsOnCast => false;
public override bool RevealOnCast => false;
public override TimeSpan GetCastRecovery()
{
@ -715,7 +715,7 @@ namespace Server.Mobiles
public class RideablePolarBear : EtherealMount
{
public override int LabelNumber { get { return 1076159; } } // Rideable Polar Bear
public override int LabelNumber { get { return 1076159; } } // Rideable Polar Bear
public override int EtherealHue { get { return 0; } }
[Constructible]

View file

@ -52,7 +52,7 @@ namespace Server.Mobiles
PackItem( new Ruby( Utility.RandomMinMax( 16, 30 ) ) );
}
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool HasBreath => true; // fire breath enabled
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override PackInstinct PackInstinct{ get{ return PackInstinct.Daemon | PackInstinct.Equine; } }
@ -90,4 +90,4 @@ namespace Server.Mobiles
}
}
}
}
}

View file

@ -6,11 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a hellsteed corpse" )]
public class HellSteed : BaseMount
{
public override bool HasBreath { get { return true; } }
public override bool HasBreath => true;
public override int BreathChaosDamage { get { return 100; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override Poison PoisonImmune => Poison.Lethal;
[Constructible]
[Constructible]
public HellSteed() : this( "a hellsteed" )
{
}
@ -64,4 +64,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -10,12 +10,9 @@ namespace Server.Mobiles
{
public override double WeaponAbilityChance { get { return 0.07; } } /* 1 in 15 chance of using per landed hit */
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.Dismount;
}
public override WeaponAbility GetWeaponAbility() => WeaponAbility.Dismount;
public override bool StatLossAfterTame { get { return true; } }
public override bool StatLossAfterTame => true;
private static int GetHue()
{
@ -23,23 +20,23 @@ namespace Server.Mobiles
/*
1000 1075 No Hue Color 93.02% 0x0
*
*
10 1075 Ice Green 0.93% 0x847F
10 1075 Light Blue 0.93% 0x848D
10 1075 Strong Cyan 0.93% 0x8495
10 1075 Agapite 0.93% 0x8899
10 1075 Gold 0.93% 0x8032
*
*
8 1075 Blue and Yellow 0.74% 0x8487
*
*
5 1075 Ice Blue 0.47% 0x8482
*
*
3 1075 Cyan 0.28% 0x8123
3 1075 Light Green 0.28% 0x8295
*
*
2 1075 Strong Yellow 0.19% 0x8037
2 1075 Green 0.19% 0x8030 //this one is an approximation
*
*
1 1075 Strong Purple 0.09% 0x8490
1 1075 Strong Green 0.09% 0x855C
* */
@ -70,7 +67,7 @@ namespace Server.Mobiles
return 0x848D;
else if( rand <= 74 )
return 0x847F;
return 0;
}
@ -153,7 +150,7 @@ namespace Server.Mobiles
public override int Meat { get { return 16; } }
public override int Hides { get { return 60; } }
public override FoodType FavoriteFood { get { return FoodType.Meat; } }
public override bool CanAngerOnTame { get { return true; } }
public override bool CanAngerOnTame => true;
public override void OnGaveMeleeAttack( Mobile defender )
{

View file

@ -8,10 +8,10 @@ namespace Server.Mobiles
[CorpseName( "a ki-rin corpse" )]
public class Kirin : BaseMount
{
public override bool AllowFemaleRider{ get{ return false; } }
public override bool AllowFemaleTamer{ get{ return false; } }
public override bool AllowFemaleRider => false;
public override bool AllowFemaleTamer => false;
public override bool InitialInnocent{ get{ return true; } }
public override bool InitialInnocent => true;
public override TimeSpan MountAbilityDelay { get { return TimeSpan.FromHours( 1.0 ); } }
@ -130,4 +130,4 @@ namespace Server.Mobiles
AI = AIType.AI_Mage;
}
}
}
}

View file

@ -10,12 +10,9 @@ namespace Server.Mobiles
{
public override double WeaponAbilityChance { get { return 0.07; } } /* 1 in 15 chance of using; 1 in 5 chance of success */
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.Dismount;
}
public override WeaponAbility GetWeaponAbility() => WeaponAbility.Dismount;
public override bool StatLossAfterTame { get { return true; } }
public override bool StatLossAfterTame => true;
private static int GetHue()
{
@ -153,7 +150,7 @@ namespace Server.Mobiles
public override int Meat { get { return 16; } }
public override int Hides { get { return 60; } }
public override FoodType FavoriteFood { get { return FoodType.Meat; } }
public override bool CanAngerOnTame { get { return true; } }
public override bool CanAngerOnTame => true;
public override void OnGaveMeleeAttack( Mobile defender )
{

View file

@ -92,12 +92,12 @@ namespace Server.Mobiles
return base.GetAngerSound();
}
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool HasBreath => true; // fire breath enabled
public override int Meat{ get{ return 5; } }
public override int Hides{ get{ return 10; } }
public override HideType HideType{ get{ return HideType.Barbed; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override bool CanAngerOnTame { get { return true; } }
public override bool CanAngerOnTame => true;
public Nightmare( Serial serial ) : base( serial )
{
@ -122,4 +122,4 @@ namespace Server.Mobiles
BaseSoundID = 0x16A;
}
}
}
}

View file

@ -54,7 +54,7 @@ namespace Server.Mobiles
return 1.0;
}
public override bool AutoDispel{ get{ return !Controlled; } }
public override bool AutoDispel => !Controlled;
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public ScaledSwampDragon( Serial serial ) : base( serial )
@ -75,4 +75,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,8 +6,10 @@ namespace Server.Mobiles
[CorpseName( "an undead horse corpse" )]
public class SkeletalMount : BaseMount
{
[Constructible]
public SkeletalMount() : this( "a skeletal steed" )
public override string DefaultName => "a skeletal steed";
[Constructible]
public SkeletalMount() : this( null )
{
}
@ -38,8 +40,8 @@ namespace Server.Mobiles
Karma = 0;
}
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override bool BleedImmune{ get{ return true; } }
public override Poison PoisonImmune => Poison.Lethal;
public override bool BleedImmune => true;
public SkeletalMount( Serial serial ) : base( serial )
{
@ -62,7 +64,6 @@ namespace Server.Mobiles
{
case 0:
{
Name = "a skeletal steed";
Tamable = false;
MinTameSkill = 0.0;
ControlSlots = 0;
@ -71,4 +72,4 @@ namespace Server.Mobiles
}
}
}
}
}

View file

@ -152,14 +152,14 @@ namespace Server.Mobiles
return 1.0;
}
public override bool ReacquireOnMovement{ get{ return true; } }
public override bool AutoDispel{ get{ return !Controlled; } }
public override bool ReacquireOnMovement => true;
public override bool AutoDispel => !Controlled;
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override int Meat{ get{ return 19; } }
public override int Hides{ get{ return 20; } }
public override int Scales{ get{ return 5; } }
public override ScaleType ScaleType{ get{ return ScaleType.Green; } }
public override bool CanAngerOnTame { get { return true; } }
public override bool CanAngerOnTame => true;
public SwampDragon( Serial serial ) : base( serial )
{
@ -212,4 +212,4 @@ namespace Server.Mobiles
BaseSoundID = 0x16A;
}
}
}
}

View file

@ -8,10 +8,10 @@ namespace Server.Mobiles
[CorpseName( "a unicorn corpse" )]
public class Unicorn : BaseMount
{
public override bool AllowMaleRider{ get{ return false; } }
public override bool AllowMaleTamer{ get{ return false; } }
public override bool AllowMaleRider => false;
public override bool AllowMaleTamer => false;
public override bool InitialInnocent{ get{ return true; } }
public override bool InitialInnocent => true;
public override TimeSpan MountAbilityDelay { get { return TimeSpan.FromHours( 1.0 ); } }
@ -114,7 +114,7 @@ namespace Server.Mobiles
get{ return OppositionGroup.FeyAndUndead; }
}
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override Poison PoisonImmune => Poison.Lethal;
public override int Meat{ get{ return 3; } }
public override int Hides{ get{ return 10; } }
public override HideType HideType{ get{ return HideType.Horned; } }
@ -138,4 +138,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "an alligator corpse" )]
public class Alligator : BaseCreature
{
public override string DefaultName => "an alligator";
[Constructible]
public Alligator() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "an alligator";
Body = 0xCA;
BaseSoundID = 660;
@ -69,4 +70,4 @@ namespace Server.Mobiles
BaseSoundID = 660;
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Serpant" )]
public class GiantSerpent : BaseCreature
{
public override string DefaultName => "a giant snake";
[Constructible]
public GiantSerpent() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a giant serpent";
Body = 0x15;
Hue = Utility.RandomSnakeHue();
BaseSoundID = 219;
@ -53,10 +54,10 @@ namespace Server.Mobiles
AddLoot( LootPack.Average );
}
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 override bool DeathAdderCharmable{ get{ return true; } }
public override bool DeathAdderCharmable => true;
public override int Meat{ get{ return 4; } }
public override int Hides{ get{ return 15; } }
@ -83,4 +84,4 @@ namespace Server.Mobiles
BaseSoundID = 219;
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Iceserpant" )]
public class IceSerpent : BaseCreature
{
public override string DefaultName => "a giant ice serpent";
[Constructible]
public IceSerpent() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a giant ice serpent";
Body = 89;
BaseSoundID = 219;
@ -43,7 +44,7 @@ namespace Server.Mobiles
VirtualArmor = 32;
PackItem( Loot.RandomArmorOrShieldOrWeapon() );
switch ( Utility.Random( 10 ))
{
case 0: PackItem( new LeftArm() ); break;
@ -67,7 +68,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Meager );
}
public override bool DeathAdderCharmable{ get{ return true; } }
public override bool DeathAdderCharmable => true;
public override int Meat{ get{ return 4; } }
public override int Hides{ get{ return 15; } }
@ -94,4 +95,4 @@ namespace Server.Mobiles
BaseSoundID = 219;
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Icesnake" )]
public class IceSnake : BaseCreature
{
public override string DefaultName => "an ice snake";
[Constructible]
public IceSnake() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "an ice snake";
Body = 52;
Hue = 0x480;
BaseSoundID = 0xDB;
@ -47,7 +48,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Meager );
}
public override bool DeathAdderCharmable{ get{ return true; } }
public override bool DeathAdderCharmable => true;
public override int Meat{ get{ return 1; } }
@ -69,4 +70,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Lavalizard" )]
public class LavaLizard : BaseCreature
{
public override string DefaultName => "a lava lizard";
[Constructible]
public LavaLizard() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a lava lizard";
Body = 0xCE;
Hue = Utility.RandomList( 0x647, 0x650, 0x659, 0x662, 0x66B, 0x674 );
BaseSoundID = 0x5A;
@ -53,7 +54,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Meager );
}
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool HasBreath => true; // fire breath enabled
public override int Hides{ get{ return 12; } }
public override HideType HideType{ get{ return HideType.Spined; } }
@ -75,4 +76,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -9,10 +9,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Lavaserpant" )]
public class LavaSerpent : BaseCreature
{
public override string DefaultName => "a lava serpent";
[Constructible]
public LavaSerpent() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a lava serpent";
Body = 90;
BaseSoundID = 219;
@ -52,9 +53,9 @@ namespace Server.Mobiles
AddLoot( LootPack.Average );
}
public override bool DeathAdderCharmable{ get{ return true; } }
public override bool DeathAdderCharmable => true;
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool HasBreath => true; // fire breath enabled
public override int Meat{ get{ return 4; } }
public override int Hides{ get{ return 15; } }
public override HideType HideType{ get{ return HideType.Spined; } }
@ -80,4 +81,4 @@ namespace Server.Mobiles
BaseSoundID = 219;
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Lavasnake" )]
public class LavaSnake : BaseCreature
{
public override string DefaultName => "a lava snake";
[Constructible]
public LavaSnake() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a lava snake";
Body = 52;
Hue = Utility.RandomList( 0x647, 0x650, 0x659, 0x662, 0x66B, 0x674 );
BaseSoundID = 0xDB;
@ -49,9 +50,9 @@ namespace Server.Mobiles
AddLoot( LootPack.Poor );
}
public override bool DeathAdderCharmable{ get{ return true; } }
public override bool DeathAdderCharmable => true;
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override bool HasBreath => true; // fire breath enabled
public override int Meat{ get{ return 1; } }
public LavaSnake(Serial serial) : base(serial)
@ -72,4 +73,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -11,11 +11,12 @@ namespace Server.Mobiles
public override Faction FactionAllegiance { get { return TrueBritannians.Instance; } }
public override Ethics.Ethic EthicAllegiance { get { return Ethics.Ethic.Hero; } }
public override string DefaultName => "a silver serpent";
[Constructible]
public SilverSerpent() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Body = 92;
Name = "a silver serpent";
BaseSoundID = 219;
SetStr( 161, 360 );
@ -52,11 +53,11 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems, 2 );
}
public override bool DeathAdderCharmable{ get{ return true; } }
public override bool DeathAdderCharmable => true;
public override int Meat{ get{ return 1; } }
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 SilverSerpent(Serial serial) : base(serial)
{
@ -79,4 +80,4 @@ namespace Server.Mobiles
BaseSoundID = 219;
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a snake corpse" )]
public class Snake : BaseCreature
{
public override string DefaultName => "a snake";
[Constructible]
public Snake() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a snake";
Body = 52;
Hue = Utility.RandomSnakeHue();
BaseSoundID = 0xDB;
@ -43,10 +44,10 @@ namespace Server.Mobiles
MinTameSkill = 59.1;
}
public override Poison PoisonImmune{ get{ return Poison.Lesser; } }
public override Poison HitPoison{ get{ return Poison.Lesser; } }
public override Poison PoisonImmune => Poison.Lesser;
public override Poison HitPoison => Poison.Lesser;
public override bool DeathAdderCharmable{ get{ return true; } }
public override bool DeathAdderCharmable => true;
public override int Meat{ get{ return 1; } }
public override FoodType FavoriteFood{ get{ return FoodType.Eggs; } }
@ -69,4 +70,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Giantrat" )]
public class GiantRat : BaseCreature
{
public override string DefaultName => "a giant rat";
[Constructible]
public GiantRat() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a giant rat";
Body = 0xD7;
BaseSoundID = 0x188;
@ -70,4 +71,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Jackrabbit" )]
public class JackRabbit : BaseCreature
{
public override string DefaultName => "a jack rabbit";
[Constructible]
public JackRabbit() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a jack rabbit";
Body = 0xCD;
Hue = 0x1BB;
@ -49,20 +50,20 @@ namespace Server.Mobiles
{
}
public override int GetAttackSound()
{
return 0xC9;
}
public override int GetAttackSound()
{
return 0xC9;
}
public override int GetHurtSound()
{
return 0xCA;
}
public override int GetHurtSound()
{
return 0xCA;
}
public override int GetDeathSound()
{
return 0xCB;
}
public override int GetDeathSound()
{
return 0xCB;
}
public override void Serialize(GenericWriter writer)
{
@ -78,4 +79,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,13 +6,14 @@ namespace Server.Mobiles
[CorpseName( "a hare corpse" )]
public class Rabbit : BaseCreature
{
public override string DefaultName => "a rabbit";
[Constructible]
public Rabbit() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a rabbit";
Body = 205;
if ( 0.5 >= Utility.RandomDouble() )
if ( Utility.RandomBool() )
Hue = Utility.RandomAnimalHue();
SetStr( 6, 10 );
@ -50,20 +51,20 @@ namespace Server.Mobiles
{
}
public override int GetAttackSound()
{
return 0xC9;
}
public override int GetAttackSound()
{
return 0xC9;
}
public override int GetHurtSound()
{
return 0xCA;
}
public override int GetHurtSound()
{
return 0xCA;
}
public override int GetDeathSound()
{
return 0xCB;
}
public override int GetDeathSound()
{
return 0xCB;
}
public override void Serialize(GenericWriter writer)
{
@ -79,4 +80,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,13 +3,15 @@ using Server.Mobiles;
namespace Server.Mobiles
{
[CorpseName( "a sewer rat corpse" )]
public class Sewerrat : BaseCreature
[CorpseName( "a rat corpse" )]
[TypeAlias("Server.Mobiles.Sewerrat")]
public class SewerRat : BaseCreature
{
public override string DefaultName => "a sewer rat";
[Constructible]
public Sewerrat() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
public SewerRat() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a sewer rat";
Body = 238;
BaseSoundID = 0xCC;
@ -47,10 +49,10 @@ namespace Server.Mobiles
AddLoot( LootPack.Poor );
}
public override int Meat{ get{ return 1; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Eggs | FoodType.FruitsAndVegies; } }
public override int Meat => 1;
public override FoodType FavoriteFood => FoodType.Meat | FoodType.Eggs | FoodType.FruitsAndVegies;
public Sewerrat(Serial serial) : base(serial)
public SewerRat(Serial serial) : base(serial)
{
}
@ -68,4 +70,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,12 +6,13 @@ namespace Server.Mobiles
[CorpseName( "a jwilson corpse" )]
public class Jwilson : BaseCreature
{
public override string DefaultName => "a jwilson";
[Constructible]
public Jwilson() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Hue = Utility.RandomList(0x89C,0x8A2,0x8A8,0x8AE);
this.Body = 0x33;
this.Name = ("a jwilson");
this.VirtualArmor = 8;
this.InitStats(Utility.Random(22,13),Utility.Random(16,6),Utility.Random(16,5));
@ -29,30 +30,30 @@ namespace Server.Mobiles
{
}
public override int GetAngerSound()
{
return 0x1C8;
}
public override int GetAngerSound()
{
return 0x1C8;
}
public override int GetIdleSound()
{
return 0x1C9;
}
public override int GetIdleSound()
{
return 0x1C9;
}
public override int GetAttackSound()
{
return 0x1CA;
}
public override int GetAttackSound()
{
return 0x1CA;
}
public override int GetHurtSound()
{
return 0x1CB;
}
public override int GetHurtSound()
{
return 0x1CB;
}
public override int GetDeathSound()
{
return 0x1CC;
}
public override int GetDeathSound()
{
return 0x1CC;
}
public override void Serialize(GenericWriter writer)
{

View file

@ -6,11 +6,12 @@ namespace Server.Mobiles
[CorpseName("a parrot corpse")]
public class Parrot : BaseCreature
{
public override string DefaultName => "a parrot";
[Constructible]
public Parrot() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
this.Body = 831;
this.Name = ("a parrot");
this.VirtualArmor = Utility.Random(0,6);
this.InitStats((10),Utility.Random(25,16),(10));
@ -31,30 +32,30 @@ namespace Server.Mobiles
{
}
public override int GetAngerSound()
{
return 0x1B;
}
public override int GetAngerSound()
{
return 0x1B;
}
public override int GetIdleSound()
{
return 0x1C;
}
public override int GetIdleSound()
{
return 0x1C;
}
public override int GetAttackSound()
{
return 0x1D;
}
public override int GetAttackSound()
{
return 0x1D;
}
public override int GetHurtSound()
{
return 0x1E;
}
public override int GetHurtSound()
{
return 0x1E;
}
public override int GetDeathSound()
{
return 0x1F;
}
public override int GetDeathSound()
{
return 0x1F;
}
public override void Serialize(GenericWriter writer)
{
@ -70,4 +71,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -76,17 +76,18 @@ namespace Server.Mobiles
if ( Hue == 0 )
Hue = Utility.RandomBirdHue();
}
}
}
[CorpseName( "a bird corpse" )]
public class TropicalBird : BaseCreature
{
public override string DefaultName => "a tropical bird";
[Constructible]
public TropicalBird() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Hue = Utility.RandomBirdHue();
Name = "a tropical bird";
Body = 6;
BaseSoundID = 0xBF;
@ -134,6 +135,6 @@ namespace Server.Mobiles
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Housecat" )]
public class Cat : BaseCreature
{
public override string DefaultName => "a cat";
[Constructible]
public Cat() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a cat";
Body = 0xC9;
Hue = Utility.RandomAnimalHue();
BaseSoundID = 0x69;
@ -64,4 +65,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a dog corpse" )]
public class Dog : BaseCreature
{
public override string DefaultName => "a dog";
[Constructible]
public Dog() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a dog";
Body = 0xD9;
Hue = Utility.RandomAnimalHue();
BaseSoundID = 0x85;
@ -63,4 +64,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a rat corpse" )]
public class Rat : BaseCreature
{
public override string DefaultName => "a rat";
[Constructible]
public Rat() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a rat";
Body = 238;
BaseSoundID = 0xCC;
@ -67,4 +68,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}