Пример #1
0
 public static Models.Skills Map(Skills data)
 {
     return(DataMapper.Map <Models.Skills, Skills>(data));
 }
Пример #2
0
 public static SkillsExtended MapExtended(Skills data)
 {
     return(DataMapper.Map <SkillsExtended, Skills>(data));
 }
Пример #3
0
 private static bool CanEquipItem(Item item, Skills skills)
 {
     return(item.Category != (int)ItemCategory.Resource &&
            item.RequiredDefenseLevel <= GameMath.ExperienceToLevel(skills.Defense) &&
            item.RequiredAttackLevel <= GameMath.ExperienceToLevel(skills.Attack));
 }