ModernUO/Scripts/Items/Skill Items/Magical/BookOfChivalry.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

45 lines
No EOL
994 B
C#

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