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

@ -6,7 +6,7 @@ namespace Server.Items
public class BloodwoodSpirit : BaseTalisman
{
public override int LabelNumber{ get{ return 1075034; } } // Bloodwood Spirit
public override bool ForceShowName{ get{ return true; } }
public override bool ForceShowName => true;
[Constructible]
public BloodwoodSpirit() : base( 0x2F5A )

View file

@ -7,7 +7,7 @@ namespace Server.Items
public class TotemOfVoid : BaseTalisman
{
public override int LabelNumber{ get{ return 1075035; } } // Totem of the Void
public override bool ForceShowName{ get{ return true; } }
public override bool ForceShowName => true;
[Constructible]
public TotemOfVoid() : base( 0x2F5B )

View file

@ -11,7 +11,7 @@ namespace Server.Items
LootType = LootType.Regular;
}
public override bool ForceShowProperties{ get{ return ObjectPropertyList.Enabled; } }
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
public PhillipsWoodenSteed( Serial serial ) : base( serial )
{
@ -23,7 +23,7 @@ namespace Server.Items
writer.Write( (int) 0 );
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );
@ -31,4 +31,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}