Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
/*
|
||||
* Simply add this box with param true to create the entire valentine's 2007 package.
|
||||
* Adding it with no params or false will create an empty box.
|
||||
|
|
@ -7,58 +5,59 @@
|
|||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class RedVelvetGiftBox : BaseContainer
|
||||
{
|
||||
public override int DefaultGumpID => 0x3f;
|
||||
public override int LabelNumber => 1077596; // A Red Velvet Box
|
||||
public class RedVelvetGiftBox : BaseContainer
|
||||
{
|
||||
[Constructible]
|
||||
public RedVelvetGiftBox()
|
||||
: this(false)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public RedVelvetGiftBox()
|
||||
: this( false )
|
||||
{
|
||||
}
|
||||
[Constructible]
|
||||
public RedVelvetGiftBox(bool fill)
|
||||
: base(0xE7A)
|
||||
{
|
||||
Hue = 0x20;
|
||||
|
||||
[Constructible]
|
||||
public RedVelvetGiftBox( bool fill )
|
||||
: base( 0xE7A )
|
||||
{
|
||||
Hue = 0x20;
|
||||
if (fill)
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
AddToBox(new ValentinesCardSouth(), new Point3D(60 + i * 10, 47, 0));
|
||||
AddToBox(new ValentinesCardEast(), new Point3D(20 + i * 10, 72, 0));
|
||||
}
|
||||
|
||||
if (fill)
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
AddToBox(new ValentinesCardSouth(), new Point3D(60 + (i * 10), 47, 0));
|
||||
AddToBox(new ValentinesCardEast(), new Point3D(20 + (i * 10), 72, 0));
|
||||
}
|
||||
AddToBox(new Bacon(), new Point3D(90, 85, 0));
|
||||
AddToBox(new RoseInAVase(), new Point3D(130, 55, 0));
|
||||
}
|
||||
}
|
||||
AddToBox(new Bacon(), new Point3D(90, 85, 0));
|
||||
AddToBox(new RoseInAVase(), new Point3D(130, 55, 0));
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void AddToBox(Item item, Point3D loc)
|
||||
{
|
||||
DropItem(item);
|
||||
item.Location = loc;
|
||||
}
|
||||
public RedVelvetGiftBox(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public RedVelvetGiftBox( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
public override int DefaultGumpID => 0x3f;
|
||||
public override int LabelNumber => 1077596; // A Red Velvet Box
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public virtual void AddToBox(Item item, Point3D loc)
|
||||
{
|
||||
DropItem(item);
|
||||
item.Location = loc;
|
||||
}
|
||||
|
||||
writer.Write( (int)0 ); // version
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue