ModernUO/Scripts/Items/Skill Items/Magical/BookOfNinjitsu.cs
Kamron Batman 20ae1b3989
Fixes lots more spelling errors (#5)
* Renames constructable to constructible
* Fixes project references.
* Fixes BaseEquippableLight file name
* Replaces payed with paid.
* Fixes various other spelling errors
2018-02-20 16:01:41 -08:00

46 lines
No EOL
992 B
C#

using System;
using Server.Network;
using Server.Spells;
namespace Server.Items
{
public class BookOfNinjitsu : Spellbook
{
public override SpellbookType SpellbookType{ get{ return SpellbookType.Ninja; } }
public override int BookOffset{ get{ return 500; } }
public override int BookCount{ get{ return 8; } }
[Constructible]
public BookOfNinjitsu() : this( (ulong)0xFF )
{
}
[Constructible]
public BookOfNinjitsu( ulong content ) : base( content, 0x23A0 )
{
Layer = (Core.ML ? Layer.OneHanded : Layer.Invalid);
}
public BookOfNinjitsu( 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;
}
}
}