fix: Fixes scales, heritage items, and codegens holiday items (#1365)

This commit is contained in:
Kamron Batman 2023-03-07 22:38:35 -08:00 • committed by GitHub
parent f1e8d4c6f7
commit 0645251ec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
80 changed files with 1825 additions and 2694 deletions

View file

@ -1,37 +1,21 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[Furniture]
[Flippable(0x232A, 0x232B)]
[SerializationGenerator(0, false)]
public partial class GiftBox : BaseContainer
{
[Furniture]
[Flippable(0x232A, 0x232B)]
public class GiftBox : BaseContainer
[Constructible]
public GiftBox() : this(Utility.RandomDyedHue())
{
[Constructible]
public GiftBox() : this(Utility.RandomDyedHue())
{
}
}
[Constructible]
public GiftBox(int hue) : base(Utility.Random(0x232A, 2))
{
Weight = 2.0;
Hue = hue;
}
public GiftBox(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
[Constructible]
public GiftBox(int hue) : base(Utility.Random(0x232A, 2))
{
Weight = 2.0;
Hue = hue;
}
}