mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
- Fixes an issue where certain items could be incorrectly chopped (deleted) with an ax. - Co-authored-by: TrueUO <knight.daniel.r@gmail.com>
41 lines
881 B
C#
41 lines
881 B
C#
namespace Server.Items
|
|
{
|
|
[Flipable(0x232A, 0x232B)]
|
|
public class GiftBox : BaseContainer
|
|
{
|
|
public override int LabelNumber => 1156382; // Holiday Giftbox
|
|
|
|
[Constructable]
|
|
public GiftBox()
|
|
: this(Utility.RandomDyedHue())
|
|
{
|
|
}
|
|
|
|
[Constructable]
|
|
public GiftBox(int hue)
|
|
: base(Utility.Random(0x232A, 2))
|
|
{
|
|
Weight = 2.0;
|
|
Hue = hue;
|
|
}
|
|
|
|
public GiftBox(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
|
|
writer.Write(0); // version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
}
|