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

@ -2,46 +2,45 @@ using Server.Network;
namespace Server.Items
{
public class RewardCake : Item
{
public override int LabelNumber => 1049786; // Happy Birthday! ...
public class RewardCake : Item
{
[Constructible]
public RewardCake() : base(0x9e9)
{
Stackable = false;
Weight = 1.0;
Hue = Utility.RandomList(0x135, 0xcd, 0x38, 0x3b, 0x42, 0x4f, 0x11e, 0x60, 0x317, 0x10, 0x136, 0x1f9, 0x1a, 0xeb,
0x86, 0x2e);
LootType = LootType.Blessed;
}
[Constructible]
public RewardCake() : base( 0x9e9 )
{
Stackable = false;
Weight = 1.0;
Hue = Utility.RandomList(0x135, 0xcd, 0x38, 0x3b, 0x42, 0x4f, 0x11e, 0x60, 0x317, 0x10, 0x136, 0x1f9, 0x1a, 0xeb, 0x86, 0x2e);
LootType = LootType.Blessed;
}
public RewardCake(Serial serial) : base(serial)
{
}
public RewardCake( Serial serial ) : base( serial )
{
}
public override int LabelNumber => 1049786; // Happy Birthday! ...
public override bool DisplayLootType => false;
public override bool DisplayLootType => false;
public override void OnDoubleClick( Mobile from )
{
if (! from.InRange( GetWorldLocation(), 1 ))
{
from.LocalOverheadMessage( MessageType.Regular, 906, 1019045 ); // I can't reach that.
}
}
public override void OnDoubleClick(Mobile from)
{
if (!from.InRange(GetWorldLocation(), 1))
from.LocalOverheadMessage(MessageType.Regular, 906, 1019045); // I can't reach that.
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write( (int) 0 ); // version
}
writer.Write(0); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
LootType = LootType.Blessed;
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
LootType = LootType.Blessed;
int version = reader.ReadInt();
}
}
}
int version = reader.ReadInt();
}
}
}