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,12 +8,13 @@ namespace Server.Mobiles
[CorpseName( "a Lady Jennifyr corpse" )]
public class LadyJennifyr : SkeletalKnight
{
public override string DefaultName => "Lady Jennifyr";
[Constructible]
public LadyJennifyr()
{
IsParagon = true;
Name = "Lady Jennifyr";
Hue = 0x76D;
SetStr( 208, 309 );
@ -114,7 +115,7 @@ namespace Server.Mobiles
}
*/
public override bool GivesMLMinorArtifact{ get{ return true; } }
public override bool GivesMLMinorArtifact => true;
public LadyJennifyr( Serial serial )
: base( serial )

View file

@ -8,12 +8,13 @@ namespace Server.Mobiles
[CorpseName( "a Lady Marai corpse" )]
public class LadyMarai : SkeletalKnight
{
public override string DefaultName => "Lady Marai";
[Constructible]
public LadyMarai()
{
IsParagon = true;
Name = "Lady Marai";
Hue = 0x21;
SetStr( 221, 304 );
@ -47,10 +48,7 @@ namespace Server.Mobiles
AddLoot( LootPack.UltraRich, 3 );
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.CrushingBlow;
}
public override WeaponAbility GetWeaponAbility() => WeaponAbility.CrushingBlow;
/*
// TODO: Uncomment once added
@ -66,7 +64,7 @@ namespace Server.Mobiles
}
*/
public override bool GivesMLMinorArtifact{ get{ return true; } }
public override bool GivesMLMinorArtifact => true;
public LadyMarai( Serial serial )
: base( serial )

View file

@ -7,12 +7,13 @@ namespace Server.Mobiles
[CorpseName( "a Master Jonath corpse" )]
public class MasterJonath : BoneMagi
{
public override string DefaultName => "Master Jonath";
[Constructible]
public MasterJonath()
{
IsParagon = true;
Name = "Master Jonath";
Hue = 0x455;
SetStr( 109, 131 );
@ -73,7 +74,7 @@ namespace Server.Mobiles
}
*/
public override bool GivesMLMinorArtifact{ get{ return true; } }
public override bool GivesMLMinorArtifact => true;
public override int TreasureMapLevel{ get{ return 5; } }
public MasterJonath( Serial serial )

View file

@ -7,12 +7,13 @@ namespace Server.Mobiles
[CorpseName( "a Master Mikael corpse" )]
public class MasterMikael : BoneMagi
{
public override string DefaultName => "Master Mikael";
[Constructible]
public MasterMikael()
{
IsParagon = true;
Name = "Master Mikael";
Hue = 0x8FD;
SetStr( 93, 122 );
@ -72,7 +73,7 @@ namespace Server.Mobiles
}
*/
public override bool GivesMLMinorArtifact{ get{ return true; } }
public override bool GivesMLMinorArtifact => true;
public MasterMikael( Serial serial )
: base( serial )

View file

@ -7,12 +7,13 @@ namespace Server.Mobiles
[CorpseName( "a Master Theophilus corpse" )]
public class MasterTheophilus : EvilMageLord
{
public override string DefaultName => "Master Theophilus";
[Constructible]
public MasterTheophilus()
{
IsParagon = true;
Name = "Master Theophilus";
Title = "the necromancer";
Hue = 0;
@ -65,12 +66,9 @@ namespace Server.Mobiles
AddLoot( LootPack.UltraRich, 3 );
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.ParalyzingBlow;
}
public override WeaponAbility GetWeaponAbility() => WeaponAbility.ParalyzingBlow;
public override bool GivesMLMinorArtifact{ get{ return true; } }
public override bool GivesMLMinorArtifact => true;
public override int TreasureMapLevel{ get{ return 5; } }
public MasterTheophilus( Serial serial )

View file

@ -56,10 +56,7 @@ namespace Server.Mobiles
AddLoot( LootPack.UltraRich, 3 );
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.WhirlwindAttack;
}
public override WeaponAbility GetWeaponAbility() => WeaponAbility.WhirlwindAttack;
public override void OnDeath( Container c )
{
@ -68,9 +65,9 @@ namespace Server.Mobiles
c.DropItem( new ResolvesBridle() );
}
public override bool GivesMLMinorArtifact{ get{ return true; } }
public override bool AlwaysMurderer{ get{ return true; } }
public override bool HasBreath{ get{ return true; } }
public override bool GivesMLMinorArtifact => true;
public override bool AlwaysMurderer => true;
public override bool HasBreath => true;
public override int BreathChaosDamage{ get { return 100; } }
public override int BreathFireDamage{ get{ return 0; } }

View file

@ -9,12 +9,13 @@ namespace Server.Mobiles
[CorpseName( "a Sir Patrick corpse" )]
public class SirPatrick : SkeletalKnight
{
public override string DefaultName => "Sir Patrick";
[Constructible]
public SirPatrick()
{
IsParagon = true;
Name = "Sir Patrick";
Hue = 0x47E;
SetStr( 208, 319 );
@ -114,7 +115,7 @@ namespace Server.Mobiles
}
*/
public override bool GivesMLMinorArtifact{ get{ return true; } }
public override bool GivesMLMinorArtifact => true;
public SirPatrick( Serial serial )
: base( serial )