コード例 #1
0
 public void UpdateAbilities()
 {
     if (HasPlayer())
     {
         Abilities = AbilityMgr.GetCareerAbility(GetPlayer()._Info.CareerLine, GetPlayer().Level);
     }
 }
コード例 #2
0
        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;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }