fix: Localizes specialized books, codegens instruments (#1352)
This commit is contained in:
parent
ac7c3522f4
commit
f2fdc0321c
39 changed files with 1527 additions and 1866 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue