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

@ -3,16 +3,16 @@ using Server;
using Server.Items;
using Server.Gumps;
namespace Server.Mobiles
{
[CorpseName( "an ethereal warrior corpse" )]
public class EtherealWarrior : BaseCreature
{
public override bool InitialInnocent{ get{ return true; } }
namespace Server.Mobiles
{
[CorpseName( "an ethereal warrior corpse" )]
public class EtherealWarrior : BaseCreature
{
public override bool InitialInnocent => true;
[Constructible]
public EtherealWarrior() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
{
[Constructible]
public EtherealWarrior() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
{
Name = NameList.RandomName( "ethereal warrior" );
Body = 123;
@ -129,20 +129,20 @@ namespace Server.Mobiles
attacker.Mana -= Utility.Random( 10, 10 );
}
public EtherealWarrior( Serial serial ) : base( serial )
{
}
public EtherealWarrior( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
}