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,11 +7,12 @@ namespace Server.Mobiles
[CorpseName( "a corporeal brume corpse" )]
public class CorporealBrume : BaseCreature
{
public override string DefaultName { get { return "a corporeal brume"; } }
[Constructible]
public CorporealBrume()
: base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a corporeal brume";
Body = 0x104; // TODO: Verify
BaseSoundID = 0x56B;

View file

@ -7,11 +7,12 @@ namespace Server.Mobiles
[CorpseName( "a crystal daemon corpse" )]
public class CrystalDaemon : BaseCreature
{
public override string DefaultName { get { return "a crystal daemon"; } }
[Constructible]
public CrystalDaemon()
: base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a crystal daemon";
Body = 0x310;
Hue = 0x3E8;
BaseSoundID = 0x47D;

View file

@ -7,11 +7,12 @@ namespace Server.Mobiles
[CorpseName( "a Crystal Lattice Seeker corpse" )]
public class CrystalLatticeSeeker : BaseCreature
{
public override string DefaultName { get { return "Crystal Lattice Seeker"; } }
[Constructible]
public CrystalLatticeSeeker()
: base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "Crystal Lattice Seeker";
Body = 0x7B;
Hue = 0x47E;

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a crystal sea serpent corpse" )]
public class CrystalSeaSerpent : SeaSerpent
{
public override string DefaultName { get { return "a crystal sea serpent"; } }
[Constructible]
public CrystalSeaSerpent()
{
Name = "a crystal sea serpent";
Hue = 0x47E;
SetStr( 250, 450 );

View file

@ -7,11 +7,12 @@ namespace Server.Mobiles
[CorpseName( "a crystal vortex corpse" )]
public class CrystalVortex : BaseCreature
{
public override string DefaultName { get { return "a crystal vortex"; } }
[Constructible]
public CrystalVortex()
: base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a crystal vortex";
Body = 0xD;
Hue = 0x2B2;
BaseSoundID = 0x107;

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
{
public class CrystalWisp : Wisp
{
public override string DefaultName { get { return "a crystal wisp"; } }
[Constructible]
public CrystalWisp()
{
Name = "a crystal wisp";
Hue = 0x482;
PackArcaneScroll( 0, 1 );

View file

@ -7,11 +7,12 @@ namespace Server.Mobiles
[CorpseName( "a mantra effervescence corpse" )]
public class MantraEffervescence : BaseCreature
{
public override string DefaultName => "a mantra effervescence";
[Constructible]
public MantraEffervescence()
: base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a mantra effervescence";
Body = 0x111;
BaseSoundID = 0x56E;

View file

@ -7,6 +7,8 @@ namespace Server.Mobiles
[CorpseName( "a human corpse" )]
public class Protector : BaseCreature
{
public override string DefaultName => "a Protector";
[Constructible]
public Protector()
: base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
@ -17,7 +19,6 @@ namespace Server.Mobiles
HairItemID = Race.Human.RandomHair( this );
HairHue = Race.Human.RandomHairHue();
Name = "a Protector";
Title = "the mystic llamaherder";
SetStr( 700, 800 );
@ -57,9 +58,9 @@ namespace Server.Mobiles
AddItem( shroud );
}
public override bool AlwaysMurderer { get { return true; } }
public override bool PropertyTitle { get { return false; } }
public override bool ShowFameTitle { get { return false; } }
public override bool AlwaysMurderer => true;
public override bool PropertyTitle => false;
public override bool ShowFameTitle => false;
public Protector( Serial serial )
: base( serial )

View file

@ -7,11 +7,12 @@ namespace Server.Mobiles
[CorpseName( "an unfrozen mummy corpse" )]
public class UnfrozenMummy : BaseCreature
{
public override string DefaultName => "an unfrozen mummy";
[Constructible]
public UnfrozenMummy()
: base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.4, 0.8 )
{
Name = "an unfrozen mummy";
Body = 0x9B;
Hue = 0x480;
BaseSoundID = 0x1D7;