public void SetFocusValue(SkillObject skill, int newValue) { HeroAdminCharacterSkill result = Skills.FirstOrDefault((obj) => obj.StringId.Equals(skill.StringId)); if (null != result) { result.SkillFocus = newValue; } }
public void SetSkillValue(SkillObject skill, int level) { HeroAdminCharacterSkill result = Skills.FirstOrDefault((obj) => obj.StringId.Equals(skill.StringId)); if (null != result) { result.SkillValue = level; } }
public int GetFocusValue(SkillObject skill) { HeroAdminCharacterSkill result = Skills.FirstOrDefault((obj) => obj.StringId.Equals(skill.StringId)); if (null != result) { return(result.SkillFocus); } else { return(0); } }
public int GetSkillValue(SkillObject current) { HeroAdminCharacterSkill result = Skills.FirstOrDefault((obj) => obj.StringId.Equals(current.StringId)); if (null != result) { return(result.SkillValue); } else { return(0); } }