Exemplo n.º 1
0
 private StatsResults GetStatsResults(Armor armor, int level)
 {
     StatsResults results = new StatsResults();
     if (armor.NormalStats != null)
     {
         results.NormalAttack = armor.GetNormalAttackAt(level);
         results.NormalDefense = armor.GetNormalDefenseAt(level);
     }
     if (armor.PlusStats != null)
     {
         results.PlusAttack = armor.GetPlusAttackAt(level);
         results.PlusDefense = armor.GetPlusDefenseAt(level);
     }
     return results;
 }
Exemplo n.º 2
0
        private KeyValuePair<int, int> GetArmorStats(Armor armor, int level, bool isPlus)
        {
            int armorAttack = (isPlus) ? armor.GetPlusAttackAt(level) : armor.GetNormalAttackAt(level);
            int armorDefense = (isPlus) ? armor.GetPlusDefenseAt(level) : armor.GetNormalDefenseAt(level);

            return new KeyValuePair<int, int>(armorAttack, armorDefense);
        }