Exemplo n.º 1
0
        private SpellDefinition GetSpellDefinition(int idx)
        {
            SpellDefinition def = null;

            switch (_spellBookType)
            {
            case SpellBookType.Magery:
                def = SpellsMagery.GetSpell(idx);

                break;

            case SpellBookType.Necromancy:
                def = SpellsNecromancy.GetSpell(idx);

                break;

            case SpellBookType.Chivalry:
                def = SpellsChivalry.GetSpell(idx);

                break;

            case SpellBookType.Bushido:
                def = SpellsBushido.GetSpell(idx);

                break;

            case SpellBookType.Ninjitsu:
                def = SpellsNinjitsu.GetSpell(idx);

                break;

            case SpellBookType.Spellweaving:
                def = SpellsSpellweaving.GetSpell(idx);

                break;

            case SpellBookType.Mysticism:
                def = SpellsMysticism.GetSpell(idx);

                break;

            case SpellBookType.Bardic:
                def = SpellsBardic.GetSpell(idx);

                break;
            }

            return(def);
        }
Exemplo n.º 2
0
        private void GetSpellRequires(int offset, out int y, out string text)
        {
            y = 162;
            int manaCost = 0;
            int minSkill = 0;

            switch (_spellBookType)
            {
            case SpellBookType.Necromancy:
                SpellDefinition def = SpellsNecromancy.GetSpell(offset + 1);
                manaCost = def.ManaCost;
                minSkill = def.MinSkill;

                break;

            case SpellBookType.Chivalry:
                def      = SpellsChivalry.GetSpell(offset + 1);
                manaCost = def.ManaCost;
                minSkill = def.MinSkill;

                break;

            case SpellBookType.Bushido:
                def      = SpellsBushido.GetSpell(offset + 1);
                manaCost = def.ManaCost;
                minSkill = def.MinSkill;

                break;

            case SpellBookType.Ninjitsu:
                def      = SpellsNinjitsu.GetSpell(offset + 1);
                manaCost = def.ManaCost;
                minSkill = def.MinSkill;

                break;

            case SpellBookType.Spellweaving:
                def      = SpellsSpellweaving.GetSpell(offset + 1);
                manaCost = def.ManaCost;
                minSkill = def.MinSkill;

                break;

            case SpellBookType.Mysticism:
                def      = SpellsMysticism.GetSpell(offset + 1);
                manaCost = def.ManaCost;
                minSkill = def.MinSkill;

                break;

            case SpellBookType.Bardic:
                def      = SpellsBardic.GetSpell(offset + 1);
                manaCost = def.ManaCost;
                minSkill = def.MinSkill;
                y        = 140;
                text     = $"Upkeep Cost: {def.TithingCost}\nMana cost: {manaCost}\nMin. Skill: {minSkill}";

                return;
            }

            text = $"Mana cost: {manaCost}\nMin. Skill: {minSkill}";
        }
Exemplo n.º 3
0
        private void GetSpellNames(int offset, out string name, out string abbreviature, out string reagents)
        {
            switch (_spellBookType)
            {
            case SpellBookType.Magery:
                SpellDefinition def = SpellsMagery.GetSpell(offset + 1);
                name         = def.Name;
                abbreviature = SpellsMagery.SpecialReagentsChars[offset];
                reagents     = def.CreateReagentListString("\n");

                break;

            case SpellBookType.Necromancy:
                def          = SpellsNecromancy.GetSpell(offset + 1);
                name         = def.Name;
                abbreviature = def.PowerWords;
                reagents     = def.CreateReagentListString("\n");

                break;

            case SpellBookType.Chivalry:
                def          = SpellsChivalry.GetSpell(offset + 1);
                name         = def.Name;
                abbreviature = def.PowerWords;
                reagents     = string.Empty;

                break;

            case SpellBookType.Bushido:
                def          = SpellsBushido.GetSpell(offset + 1);
                name         = def.Name;
                abbreviature = def.PowerWords;
                reagents     = string.Empty;

                break;

            case SpellBookType.Ninjitsu:
                def          = SpellsNinjitsu.GetSpell(offset + 1);
                name         = def.Name;
                abbreviature = def.PowerWords;
                reagents     = string.Empty;

                break;

            case SpellBookType.Spellweaving:
                def          = SpellsSpellweaving.GetSpell(offset + 1);
                name         = def.Name;
                abbreviature = def.PowerWords;
                reagents     = string.Empty;

                break;

            case SpellBookType.Mysticism:
                def          = SpellsMysticism.GetSpell(offset + 1);
                name         = def.Name;
                abbreviature = def.PowerWords;
                reagents     = def.CreateReagentListString("\n");

                break;

            case SpellBookType.Bardic:
                def          = SpellsBardic.GetSpell(offset + 1);
                name         = def.Name;
                abbreviature = def.PowerWords;
                reagents     = string.Empty;

                break;

            default:

                throw new ArgumentOutOfRangeException();
            }
        }