fix: Localizes specialized books, codegens instruments (#1352)

This commit is contained in:
Kamron Batman 2023-02-25 10:56:05 -08:00 • committed by GitHub
parent ac7c3522f4
commit f2fdc0321c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 1527 additions and 1866 deletions

View file

@ -1,40 +1,19 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[Flippable(0x11EA, 0x11EB)]
[SerializationGenerator(0, false)]
public partial class Sand : Item, ICommodity
{
[Flippable(0x11EA, 0x11EB)]
public class Sand : Item, ICommodity
[Constructible]
public Sand(int amount = 1) : base(0x11EA)
{
[Constructible]
public Sand(int amount = 1) : base(0x11EA)
{
Stackable = Core.ML;
Weight = 1.0;
}
public Sand(Serial serial) : base(serial)
{
}
public override int LabelNumber => 1044626; // sand
int ICommodity.DescriptionNumber => LabelNumber;
bool ICommodity.IsDeedable => true;
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(1); // version
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
if (version == 0 && Name == "sand")
{
Name = null;
}
}
Stackable = Core.ML;
Weight = 1.0;
}
public override int LabelNumber => 1044626; // sand
int ICommodity.DescriptionNumber => LabelNumber;
bool ICommodity.IsDeedable => true;
}