Beispiel #1
0
        public static SkillDescription LookupSkill(Skill skill)
        {
            SkillDescription desc = new SkillDescription("unk", skill.Name, skill.Name, skill.Name);

            if (Dict.ContainsKey(skill.Name))
            {
                desc = Dict[skill.Name];
            }

            desc.Rank   = skill.Rank;
            desc.Points = skill.Points;

            return(desc);
        }
Beispiel #2
0
        protected string SkillToString(SkillDescription desc)
        {
            string subrank = desc.Rank.ToLower().Replace(" ", string.Empty).Substring(0, 5);

            return
                "<li class='" + desc.Category
                + " " + subrank
                + "' title='" + desc.Token
                + " | " + desc.Rank
                + " | " + desc.Points
                + "'>" + desc.Rank + " "+ desc.Name + "</li>";
        }
        public static SkillDescription lookupSkill(Skill skill)
        {
            SkillDescription desc = new SkillDescription("unk", skill.Name, skill.Name, skill.Name);

            if (dict.ContainsKey(skill.Name))
                desc = dict[skill.Name];

            desc.Rank = skill.Rank;
            desc.Points = skill.Points;

            return desc;
        }