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

@ -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 )
{