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,12 +7,12 @@ namespace Server.Mobiles
[CorpseName( "a dragon corpse" )]
public class GreaterDragon : BaseCreature
{
public override bool StatLossAfterTame { get { return true; } }
public override bool StatLossAfterTame => true;
public override string DefaultName => "a greater dragon";
[Constructible]
public GreaterDragon () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.3, 0.5 )
{
Name = "a greater dragon";
Body = Utility.RandomList( 12, 59 );
BaseSoundID = 362;
@ -58,9 +58,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 5; } }
public override int Meat{ get{ return 19; } }
public override int Hides{ get{ return 30; } }
@ -68,13 +68,10 @@ 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 override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.BleedAttack;
}
public override WeaponAbility GetWeaponAbility() => WeaponAbility.BleedAttack;
public GreaterDragon( Serial serial ) : base( serial )
{

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[CorpseName( "a slimey corpse" )]
public class CorrosiveSlime : BaseCreature
{
public override string DefaultName { get { return "a corrosive slime"; } }
[Constructible]
public CorrosiveSlime() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a corrosive slime";
Body = 51;
BaseSoundID = 456;

View file

@ -19,7 +19,7 @@ namespace Server.Mobiles
SetHits( 833, 931 );
SetDamage( 21, 28 );
SetDamageType( ResistanceType.Physical, 0 );
SetDamageType( ResistanceType.Poison, 25 );
SetDamageType( ResistanceType.Energy, 75 );
@ -34,7 +34,7 @@ namespace Server.Mobiles
SetSkill( SkillName.Tactics, 101.7, 108.2 );
SetSkill( SkillName.MagicResist, 76.4, 89.9 );
SetSkill( SkillName.Anatomy, 56.4, 59.7 );
Tamable = true;
ControlSlots = 4;
MinTameSkill = 101.1;
@ -45,19 +45,16 @@ namespace Server.Mobiles
AddLoot( LootPack.AosUltraRich, 3 );
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.ParalyzingBlow;
}
public override WeaponAbility GetWeaponAbility() => WeaponAbility.ParalyzingBlow;
public override int TreasureMapLevel{ get{ return 5; } }
public override int Meat{ get{ return 5; } }
public override int Hides{ get{ return 10; } }
public override bool CanBreath{ get{ return true; } }
public override bool CanBreath => true;
public override bool CanAngerOnTame{ get { return true; } }
public override bool StatLossAfterTame{ get{ return true; } }
public override bool StatLossAfterTame => true;
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override bool CanFly { get { return true; } }
public override bool CanFly => true;
public Reptalon( Serial serial ) : base( serial )
{