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,13 @@ namespace Server.Mobiles
[CorpseName( "an Abscess corpse" )]
public class Abscess : Hydra
{
public override string DefaultName => "Abscess";
[Constructible]
public Abscess()
{
IsParagon = true;
Name = "Abscess";
Hue = 0x8FD;
SetStr( 845, 871 );
@ -55,7 +56,7 @@ namespace Server.Mobiles
c.DropItem( new AbscessTail() );
}
public override bool GivesMLMinorArtifact { get { return true; } }
public override bool GivesMLMinorArtifact => true;
public Abscess( Serial serial )
: base( serial )

View file

@ -9,12 +9,13 @@ namespace Server.Mobiles
{
// TODO: Check faction allegiance
public override string DefaultName => "Coil";
[Constructible]
public Coil()
{
IsParagon = true;
Name = "Coil";
Hue = 0x3F;
SetStr( 205, 343 );
@ -51,10 +52,7 @@ namespace Server.Mobiles
AddLoot( LootPack.UltraRich, 3 );
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.MortalStrike;
}
public override WeaponAbility GetWeaponAbility() => WeaponAbility.MortalStrike;
public override void OnDeath( Container c )
{
@ -80,7 +78,7 @@ namespace Server.Mobiles
public override Poison HitPoison { get { return Poison.Lethal; } }
public override Poison PoisonImmune { get { return Poison.Lethal; } }
public override bool GivesMLMinorArtifact { get { return true; } }
public override bool GivesMLMinorArtifact => true;
public override int Hides { get { return 48; } }
public override int Meat { get { return 1; } }

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "an enslaved satyr corpse" )]
public class EnslavedSatyr : Satyr
{
public override string DefaultName => "an enslaved satyr";
[Constructible]
public EnslavedSatyr()
{
Name = "an enslaved satyr";
}
/*

View file

@ -7,11 +7,12 @@ namespace Server.Mobiles
[CorpseName( "a hydra corpse" )]
public class Hydra : BaseCreature
{
public override string DefaultName => "a hydra";
[Constructible]
public Hydra()
: base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a hydra";
Body = 0x109;
BaseSoundID = 0x16A;
@ -64,7 +65,7 @@ namespace Server.Mobiles
*/
}
public override bool HasBreath { get { return true; } }
public override bool HasBreath => true;
public override int Hides { get { return 40; } }
public override int Meat { get { return 19; } }
public override int TreasureMapLevel { get { return 5; } }

View file

@ -7,13 +7,13 @@ namespace Server.Mobiles
[CorpseName( "an insane dryad corpse" )]
public class InsaneDryad : MLDryad
{
public override bool InitialInnocent { get { return false; } }
public override bool InitialInnocent => false;
public override string DefaultName => "an insane dryad";
[Constructible]
public InsaneDryad()
{
Name = "an insane dryad";
// TODO: Perhaps these should have negative karma?
}

View file

@ -7,13 +7,14 @@ namespace Server.Mobiles
[CorpseName( "a Saliva corpse" )]
public class Saliva : Harpy
{
public override string DefaultName => "Saliva";
[Constructible]
public Saliva()
{
// TODO: Not a paragon? No ML arties?
// It moves like a paragon on OSI...
Name = "Saliva";
Hue = 0x11E;
SetStr( 110, 206 );

View file

@ -7,13 +7,14 @@ namespace Server.Mobiles
[CorpseName( "a Tangle corpse" )]
public class Tangle : BogThing
{
public override string DefaultName => "Tangle";
[Constructible]
public Tangle()
{
// TODO: Not a paragon? No ML arties?
// It moves like a paragon on OSI...
Name = "Tangle";
Hue = 0x21;
SetStr( 870, 940 );

View file

@ -7,12 +7,13 @@ namespace Server.Mobiles
[CorpseName( "a Thrasher corpse" )]
public class Thrasher : Alligator
{
public override string DefaultName => "Thrasher";
[Constructible]
public Thrasher()
{
IsParagon = true;
Name = "Thrasher";
Hue = 0x497;
SetStr( 93, 327 );
@ -43,10 +44,7 @@ namespace Server.Mobiles
AddLoot( LootPack.FilthyRich, 4 );
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.ArmorIgnore;
}
public override WeaponAbility GetWeaponAbility() => WeaponAbility.ArmorIgnore;
public override void OnDeath( Container c )
{
@ -55,7 +53,7 @@ namespace Server.Mobiles
c.DropItem( new ThrashersTail() );
}
public override bool GivesMLMinorArtifact { get { return true; } }
public override bool GivesMLMinorArtifact => true;
public override int Hides { get { return 48; } }
public override int Meat { get { return 1; } }