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

@ -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();
}
}
}
}