public override void ResetByPlanets() { boughtCashUpgrades.Clear(); boughtSecuritiesUpgrades.Clear(); upgradedGeneratorsIds.Clear(); ProfitUpgradeLevels.Clear(); SpeedUpgradeLevels.Clear(); IsLoaded = true; }
private void AddProfitUpgradeLevel(int id, int count) { if (ProfitUpgradeLevels.ContainsKey(id)) { ProfitUpgradeLevels[id] += count; } else { ProfitUpgradeLevels.Add(id, count); } }
public override void LoadDefaults() { boughtCashUpgrades.Clear(); boughtSecuritiesUpgrades.Clear(); boughtCoinsUpgrades.Clear(); upgradedGeneratorsIds.Clear(); IsQuickBuyResearched = false; ProfitUpgradeLevels.Clear(); SpeedUpgradeLevels.Clear(); UpgradeCoinsScreenOpenedLastTime = 0; IsLoaded = true; }
private int GetProfitUpgradeLevel(int id) => ProfitUpgradeLevels.ContainsKey(id) ? ProfitUpgradeLevels[id] : 0;