public int GetSkillScore(Skill targetSkill) { ActiveSkillCategory activeSkillCategory = GetActiveSkillCategory(targetSkill.SkillCategory); ActiveSkill activeSkill = activeSkillCategory.GetActiveSkill(targetSkill); return(activeSkill.GetScore()); }
public bool IsSkillActive(Skill targetSkill) { ActiveSkillCategory activeSkillCategory = data.GetActiveSkillCategory(targetSkill.SkillCategory); if (activeSkillCategory == null) { return(false); } ActiveSkill activeSkill = activeSkillCategory.GetActiveSkill(targetSkill); if (activeSkill == null) { return(false); } return(true); }
private ActiveSkill GetActiveSkill(Skill targetSkill) { ActiveSkillCategory activeSkillCategory = data.GetActiveSkillCategory(targetSkill.SkillCategory); if (activeSkillCategory == null) { throw new System.ArgumentException("No active skillcategory found for category " + targetSkill.SkillCategory); } ActiveSkill activeSkill = activeSkillCategory.GetActiveSkill(targetSkill); if (activeSkill == null) { throw new System.ArgumentException("No active skill found for skill " + targetSkill); } return(activeSkill); }