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