Example #1
0
        public static List <Spell> GetAll(string spellName, Character character, int spellSlotLevel = 0)
        {
            int spellLevel = 0;
            int spellcastingAbilityModifier = 0;

            if (character != null)
            {
                spellLevel = character.GetSpellcastingLevel();
                spellcastingAbilityModifier = character.GetSpellcastingAbilityModifier();
            }
            return(GetAll(spellName, spellSlotLevel, spellLevel, spellcastingAbilityModifier));
        }
Example #2
0
 public static Spell Get(string spellName, Character character, int spellSlotLevel = 0)
 {
     return(Get(spellName, spellSlotLevel, character.GetSpellcastingLevel(), character.GetSpellcastingAbilityModifier()));
 }