Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e49fb4
commit 10b2674
Showing
17 changed files
with
1,185 additions
and
1,308 deletions.
There are no files selected for viewing
43 changes: 11 additions & 32 deletions
43
Projects/UOContent/Items/Skill Items/Magical/BookOfBushido.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,15 @@ | ||
namespace Server.Items | ||
{ | ||
public class BookOfBushido : Spellbook | ||
{ | ||
[Constructible] | ||
public BookOfBushido(ulong content = 0x3F) : base(content, 0x238C) => | ||
Layer = Core.ML ? Layer.OneHanded : Layer.Invalid; | ||
|
||
public BookOfBushido(Serial serial) : base(serial) | ||
{ | ||
} | ||
|
||
public override SpellbookType SpellbookType => SpellbookType.Samurai; | ||
public override int BookOffset => 400; | ||
public override int BookCount => 6; | ||
using ModernUO.Serialization; | ||
|
||
public override void Serialize(IGenericWriter writer) | ||
{ | ||
base.Serialize(writer); | ||
namespace Server.Items; | ||
|
||
writer.Write(1); // version | ||
} | ||
|
||
public override void Deserialize(IGenericReader reader) | ||
{ | ||
base.Deserialize(reader); | ||
|
||
var version = reader.ReadInt(); | ||
[SerializationGenerator(0, false)] | ||
public partial class BookOfBushido : Spellbook | ||
{ | ||
[Constructible] | ||
public BookOfBushido(ulong content = 0x3F) : base(content, 0x238C) => | ||
Layer = Core.ML ? Layer.OneHanded : Layer.Invalid; | ||
|
||
if (version == 0 && Core.ML) | ||
{ | ||
Layer = Layer.OneHanded; | ||
} | ||
} | ||
} | ||
public override SpellbookType SpellbookType => SpellbookType.Samurai; | ||
public override int BookOffset => 400; | ||
public override int BookCount => 6; | ||
} |
43 changes: 11 additions & 32 deletions
43
Projects/UOContent/Items/Skill Items/Magical/BookOfChivalry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,15 @@ | ||
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; | ||
using ModernUO.Serialization; | ||
|
||
public override void Serialize(IGenericWriter writer) | ||
{ | ||
base.Serialize(writer); | ||
namespace Server.Items; | ||
|
||
writer.Write(1); // version | ||
} | ||
|
||
public override void Deserialize(IGenericReader reader) | ||
{ | ||
base.Deserialize(reader); | ||
|
||
var version = reader.ReadInt(); | ||
[SerializationGenerator(0, false)] | ||
public partial class BookOfChivalry : Spellbook | ||
{ | ||
[Constructible] | ||
public BookOfChivalry(ulong content = 0x3FF) : base(content, 0x2252) => | ||
Layer = Core.ML ? Layer.OneHanded : Layer.Invalid; | ||
|
||
if (version == 0 && Core.ML) | ||
{ | ||
Layer = Layer.OneHanded; | ||
} | ||
} | ||
} | ||
public override SpellbookType SpellbookType => SpellbookType.Paladin; | ||
public override int BookOffset => 200; | ||
public override int BookCount => 10; | ||
} |
43 changes: 11 additions & 32 deletions
43
Projects/UOContent/Items/Skill Items/Magical/BookOfNinjitsu.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,15 @@ | ||
namespace Server.Items | ||
{ | ||
public class BookOfNinjitsu : Spellbook | ||
{ | ||
[Constructible] | ||
public BookOfNinjitsu(ulong content = 0xFF) : base(content, 0x23A0) => | ||
Layer = Core.ML ? Layer.OneHanded : Layer.Invalid; | ||
|
||
public BookOfNinjitsu(Serial serial) : base(serial) | ||
{ | ||
} | ||
|
||
public override SpellbookType SpellbookType => SpellbookType.Ninja; | ||
public override int BookOffset => 500; | ||
public override int BookCount => 8; | ||
using ModernUO.Serialization; | ||
|
||
public override void Serialize(IGenericWriter writer) | ||
{ | ||
base.Serialize(writer); | ||
namespace Server.Items; | ||
|
||
writer.Write(1); // version | ||
} | ||
|
||
public override void Deserialize(IGenericReader reader) | ||
{ | ||
base.Deserialize(reader); | ||
|
||
var version = reader.ReadInt(); | ||
[SerializationGenerator(0, false)] | ||
public partial class BookOfNinjitsu : Spellbook | ||
{ | ||
[Constructible] | ||
public BookOfNinjitsu(ulong content = 0xFF) : base(content, 0x23A0) => | ||
Layer = Core.ML ? Layer.OneHanded : Layer.Invalid; | ||
|
||
if (version == 0 && Core.ML) | ||
{ | ||
Layer = Layer.OneHanded; | ||
} | ||
} | ||
} | ||
public override SpellbookType SpellbookType => SpellbookType.Ninja; | ||
public override int BookOffset => 500; | ||
public override int BookCount => 8; | ||
} |
40 changes: 10 additions & 30 deletions
40
Projects/UOContent/Items/Skill Items/Magical/MysticSpellbook.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,15 @@ | ||
namespace Server.Items | ||
{ | ||
public class MysticSpellbook : Spellbook | ||
{ | ||
[Constructible] | ||
public MysticSpellbook(ulong content = 0) | ||
: base(content, 0x2D9D) => | ||
Layer = Layer.OneHanded; | ||
|
||
public MysticSpellbook(Serial serial) | ||
: base(serial) | ||
{ | ||
} | ||
|
||
public override SpellbookType SpellbookType => SpellbookType.Mystic; | ||
using ModernUO.Serialization; | ||
|
||
public override int BookOffset => 677; | ||
public override int BookCount => 16; | ||
namespace Server.Items; | ||
|
||
public override void Serialize(IGenericWriter writer) | ||
{ | ||
base.Serialize(writer); | ||
|
||
writer.Write(0); // version | ||
} | ||
[SerializationGenerator(0, false)] | ||
public partial class MysticSpellbook : Spellbook | ||
{ | ||
[Constructible] | ||
public MysticSpellbook(ulong content = 0) : base(content, 0x2D9D) => Layer = Layer.OneHanded; | ||
|
||
public override void Deserialize(IGenericReader reader) | ||
{ | ||
base.Deserialize(reader); | ||
public override SpellbookType SpellbookType => SpellbookType.Mystic; | ||
|
||
/*int version = */ | ||
reader.ReadInt(); | ||
} | ||
} | ||
public override int BookOffset => 677; | ||
public override int BookCount => 16; | ||
} |
43 changes: 11 additions & 32 deletions
43
Projects/UOContent/Items/Skill Items/Magical/NecromancerSpellbook.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,15 @@ | ||
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 override SpellbookType SpellbookType => SpellbookType.Necromancer; | ||
public override int BookOffset => 100; | ||
public override int BookCount => Core.SE ? 17 : 16; | ||
using ModernUO.Serialization; | ||
|
||
public override void Serialize(IGenericWriter writer) | ||
{ | ||
base.Serialize(writer); | ||
namespace Server.Items; | ||
|
||
writer.Write(1); // version | ||
} | ||
|
||
public override void Deserialize(IGenericReader reader) | ||
{ | ||
base.Deserialize(reader); | ||
|
||
var version = reader.ReadInt(); | ||
[SerializationGenerator(0, false)] | ||
public partial class NecromancerSpellbook : Spellbook | ||
{ | ||
[Constructible] | ||
public NecromancerSpellbook(ulong content = 0) : base(content, 0x2253) => | ||
Layer = Core.ML ? Layer.OneHanded : Layer.Invalid; | ||
|
||
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; | ||
} |
Oops, something went wrong.