fix: Codegens construction items (#1520)

This commit is contained in:
Kamron Batman 2023-09-29 23:28:51 -07:00 • committed by GitHub
parent 972949455b
commit 5dc2d09392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 972 additions and 1859 deletions

View file

@ -1,34 +1,13 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[Furniture]
[Flippable(0xF65, 0xF67, 0xF69)]
[TypeAlias("Server.Items.Easle")]
[SerializationGenerator(0, false)]
public partial class Easel : Item
{
[Furniture]
[Flippable(0xF65, 0xF67, 0xF69)]
[TypeAlias("Server.Items.Easle")]
public class Easel : Item
{
[Constructible]
public Easel() : base(0xF65) => Weight = 25.0;
public Easel(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
if (Weight == 10.0)
{
Weight = 25.0;
}
}
}
[Constructible]
public Easel() : base(0xF65) => Weight = 25.0;
}