Formats UO Content (#201)
This commit is contained in:
parent
86b7b3aed1
commit
ad3775c4d7
3249 changed files with 431083 additions and 440981 deletions
|
|
@ -1,33 +1,34 @@
|
|||
namespace Server.Items
|
||||
{
|
||||
public class NecromancerSpellbook : Spellbook
|
||||
{
|
||||
[Constructible]
|
||||
public NecromancerSpellbook(ulong content = 0) : base(content, 0x2253) => Layer = Core.ML ? Layer.OneHanded : Layer.Invalid;
|
||||
|
||||
public NecromancerSpellbook(Serial serial) : base(serial)
|
||||
public class NecromancerSpellbook : Spellbook
|
||||
{
|
||||
[Constructible]
|
||||
public NecromancerSpellbook(ulong content = 0) : base(content, 0x2253) =>
|
||||
Layer = Core.ML ? Layer.OneHanded : Layer.Invalid;
|
||||
|
||||
public NecromancerSpellbook(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override SpellbookType SpellbookType => SpellbookType.Necromancer;
|
||||
public override int BookOffset => 100;
|
||||
public override int BookCount => Core.SE ? 17 : 16;
|
||||
|
||||
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 && Core.ML)
|
||||
Layer = Layer.OneHanded;
|
||||
}
|
||||
}
|
||||
|
||||
public override SpellbookType SpellbookType => SpellbookType.Necromancer;
|
||||
public override int BookOffset => 100;
|
||||
public override int BookCount => Core.SE ? 17 : 16;
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(1); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(IGenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if (version == 0 && Core.ML)
|
||||
Layer = Layer.OneHanded;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue