/** * Returns the spell level obtained by this guild in a given magic class, but capped to the guilds max spell level. */ public int SpellLevel(MDRSpellClass spellClass) { //todo: fix these formulas var skill = spellClass.Skill; return((int)Util.Clamp(Guild.SkillRate[skill.ID] * CommonSpellLevel, 0, Guild.SkillRate[skill.ID] * 4)); }
/** Returns if this monster can cast this spell class or not */ public bool CanCast(MDRSpellClass spellClass) { return(SpellClasses[spellClass.ID]); }