public void UpdateAbilities() { if (HasPlayer()) { Abilities = AbilityMgr.GetCareerAbility(GetPlayer()._Info.CareerLine, GetPlayer().Level); } }
public void UpdateAbilities() { if (HasPlayer()) { List <Ability_Info> Ab = AbilityMgr.GetCareerAbility(GetPlayer()._Info.CareerLine); if (Ab != null) { //Log.Info("Abilities", "Selected :" + Ab.Count); foreach (Ability_Info Info in Ab) { if (IsValidAbility(Info)) { byte LastLevel = 0; foreach (Ability_Stats Stat in Info.Stats) { if (Stat.Level <= GetPlayer().Level&& Stat.Level > LastLevel) { LastLevel = Stat.Level; if (!Abilities.ContainsKey(Stat.Entry)) { Abilities.Add(Stat.Entry, Stat); } else { Abilities[Stat.Entry] = Stat; } } } } } } } }