Ejemplo n.º 1
0
 private void AddProfitUpgradeLevel(int id, int count)
 {
     if (ProfitUpgradeLevels.ContainsKey(id))
     {
         ProfitUpgradeLevels[id] += count;
     }
     else
     {
         ProfitUpgradeLevels.Add(id, count);
     }
 }
Ejemplo n.º 2
0
 private int GetProfitUpgradeLevel(int id)
 => ProfitUpgradeLevels.ContainsKey(id) ? ProfitUpgradeLevels[id] : 0;