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