private static void MergeSkills(DataModels.Skills mainSkills, DataModels.Skills altSkills) { mainSkills.Attack += altSkills.Attack; mainSkills.Cooking += altSkills.Cooking; mainSkills.Crafting += altSkills.Crafting; mainSkills.Defense += altSkills.Defense; mainSkills.Farming += altSkills.Farming; mainSkills.Fishing += altSkills.Fishing; mainSkills.Health += altSkills.Health; mainSkills.Magic += altSkills.Magic; mainSkills.Mining += altSkills.Mining; mainSkills.Ranged += altSkills.Ranged; mainSkills.Sailing += altSkills.Sailing; mainSkills.Slayer += altSkills.Slayer; mainSkills.Strength += altSkills.Strength; mainSkills.Woodcutting += altSkills.Woodcutting; }
public int GetCombatLevel(DataModels.Skills skills) { return((int)(((skills.AttackLevel + skills.DefenseLevel + skills.HealthLevel + skills.StrengthLevel) / 4f) + ((skills.RangedLevel + skills.MagicLevel + skills.HealingLevel) / 8f))); }