fix: Codegens tools and magical skill items (#1299)

This commit is contained in:
Kamron Batman 2022-12-07 20:46:41 -08:00 • committed by GitHub
parent f314c63175
commit 899c2e868d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 1529 additions and 1732 deletions

View file

@ -1,34 +1,18 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[SerializationGenerator(0, false)]
public partial class BlankScroll : Item, ICommodity
{
public class BlankScroll : Item, ICommodity
[Constructible]
public BlankScroll(int amount = 1) : base(0xEF3)
{
[Constructible]
public BlankScroll(int amount = 1) : base(0xEF3)
{
Stackable = true;
Weight = 1.0;
Amount = amount;
}
public BlankScroll(Serial serial) : base(serial)
{
}
int ICommodity.DescriptionNumber => LabelNumber;
bool ICommodity.IsDeedable => Core.ML;
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();
}
Stackable = true;
Weight = 1.0;
Amount = amount;
}
int ICommodity.DescriptionNumber => LabelNumber;
bool ICommodity.IsDeedable => Core.ML;
}