v0.0.1-Alpha (#42)
This commit is contained in:
parent
d30f93c454
commit
a36796c2c1
3552 changed files with 2476 additions and 15223 deletions
36
Projects/Scripts/Items/Skill Items/Magical/BookOfChivalry.cs
Normal file
36
Projects/Scripts/Items/Skill Items/Magical/BookOfChivalry.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
namespace Server.Items
|
||||
{
|
||||
public class BookOfChivalry : Spellbook
|
||||
{
|
||||
[Constructible]
|
||||
public BookOfChivalry(ulong content = 0x3FF) : base(content, 0x2252)
|
||||
{
|
||||
Layer = Core.ML ? Layer.OneHanded : Layer.Invalid;
|
||||
}
|
||||
|
||||
public BookOfChivalry(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override SpellbookType SpellbookType => SpellbookType.Paladin;
|
||||
public override int BookOffset => 200;
|
||||
public override int BookCount => 10;
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(1); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader 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