Basic support for mysticism spells, scrolls, inscription craftables, mystic reagents, 6 new spells

This commit is contained in:
Pedro Pardal 2017-03-21 17:31:08 +01:00
parent 1e03efc24c
commit 7df658cd00
33 changed files with 2118 additions and 162 deletions

View file

@ -17,7 +17,8 @@ namespace Server.Items
Paladin,
Ninja,
Samurai,
Arcanist
Arcanist,
Mystic
}
public enum BookQuality
@ -101,6 +102,7 @@ namespace Server.Items
case 4: type = SpellbookType.Ninja; break;
case 5: type = SpellbookType.Samurai; break;
case 6: type = SpellbookType.Arcanist; break;
case 7: type = SpellbookType.Mystic; break;
}
Spellbook book = Spellbook.Find( from, -1, type );
@ -162,6 +164,8 @@ namespace Server.Items
return SpellbookType.Ninja;
else if ( spellID >= 600 && spellID < 617 )
return SpellbookType.Arcanist;
else if ( spellID >= 677 && spellID < 693 )
return SpellbookType.Mystic;
return SpellbookType.Invalid;
}
@ -196,6 +200,11 @@ namespace Server.Items
return Find( from, -1, SpellbookType.Arcanist );
}
public static Spellbook FindMystic( Mobile from )
{
return Find( from, -1, SpellbookType.Mystic );
}
public static Spellbook Find( Mobile from, int spellID )
{
return Find( from, spellID, GetTypeForSpell( spellID ) );