コード例 #1
0
        /**
         * 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));
        }
コード例 #2
0
ファイル: MDRMonster.cs プロジェクト: bsimser/CoM
 /** Returns if this monster can cast this spell class or not */
 public bool CanCast(MDRSpellClass spellClass)
 {
     return(SpellClasses[spellClass.ID]);
 }