Exemple #1
0
        private void AddScroll(Spell.SpellWords spellWord, DataOvlReference.SpellStrings spellStr)
        {
            Scroll.ScrollSpells scrollSpell = (Scroll.ScrollSpells)Enum.Parse(typeof(Scroll.ScrollSpells), spellWord.ToString());

            int nIndex = 0x27A + (int)scrollSpell;

            Items[spellWord] = new Scroll(spellWord, GameStateByteArray[nIndex],
                                          DataOvlRef.StringReferences.GetString(spellStr),
                                          DataOvlRef.StringReferences.GetString(spellStr));
        }
Exemple #2
0
 private void AddSpell(Spell.SpellWords spellWord, DataOvlReference.SpellStrings spellStr)
 {
     Items[spellWord] = new Spell(spellWord, GameStateByteArray[(int)spellWord],
                                  DataOvlRef.StringReferences.GetString(spellStr),
                                  DataOvlRef.StringReferences.GetString(spellStr));
 }