Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -1,44 +1,43 @@
namespace Server.Items
{
[FlippableAttribute( 0x11EA, 0x11EB )]
public class Sand : Item, ICommodity
{
int ICommodity.DescriptionNumber => LabelNumber;
bool ICommodity.IsDeedable => true;
[Flippable(0x11EA, 0x11EB)]
public class Sand : Item, ICommodity
{
[Constructible]
public Sand() : this(1)
{
}
public override int LabelNumber => 1044626; // sand
[Constructible]
public Sand(int amount) : base(0x11EA)
{
Stackable = Core.ML;
Weight = 1.0;
}
[Constructible]
public Sand() : this( 1 )
{
}
public Sand(Serial serial) : base(serial)
{
}
[Constructible]
public Sand( int amount ) : base( 0x11EA )
{
Stackable = Core.ML;
Weight = 1.0;
}
public override int LabelNumber => 1044626; // sand
int ICommodity.DescriptionNumber => LabelNumber;
bool ICommodity.IsDeedable => true;
public Sand( Serial serial ) : base( serial )
{
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write(1); // version
}
writer.Write( (int) 1 ); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
int version = reader.ReadInt();
if ( version == 0 && Name == "sand" )
Name = null;
}
}
}
if (version == 0 && Name == "sand")
Name = null;
}
}
}