ModernUO/Scripts/Items/Skill Items/Magical/BookOfBushido.cs
2018-09-14 08:41:38 -07:00

41 lines
888 B
C#

namespace Server.Items
{
public class BookOfBushido : Spellbook
{
public override SpellbookType SpellbookType => SpellbookType.Samurai;
public override int BookOffset => 400;
public override int BookCount => 6;
[Constructible]
public BookOfBushido() : this( (ulong)0x3F )
{
}
[Constructible]
public BookOfBushido( ulong content ) : base( content, 0x238C )
{
Layer = (Core.ML ? Layer.OneHanded : Layer.Invalid);
}
public BookOfBushido( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
if ( version == 0 && Core.ML )
Layer = Layer.OneHanded;
}
}
}