示例#1
0
        SpellCastCharge GetImbueSpellFromType(ImbueType type)
        {
            string id = "";

            switch (type)
            {
            case ImbueType.Fire:
                id = "Fire";
                break;

            case ImbueType.Lightning:
                id = "Lightning";
                break;

            case ImbueType.Gravity:
                id = "Gravity";
                break;
            }
            return(Player.currentCreature.mana.spells.Find(spell => spell.id == id) as SpellCastCharge);
        }
示例#2
0
 public void Imbue(ImbueType type)
 {
     Imbue(GetImbueSpellFromType(type));
 }