calculateUpgradeIncrease() {
    const upgrades = Object.values(this.upgrades);
    let upgradeProductivity = 0;
    upgrades.forEach((upgrade) => {
      if (upgrade.bought) {
        upgradeProductivity += upgrade.productivity;
      }
    });
    this.upgradeIncrease = upgradeProductivity;
  }
// calculates the productivity increase from upgrades
calculates the productivity increase from upgrades
calculates the productivity increase from upgrades
calculateUpgradeIncrease() {
    const upgrades = Object.values(this.upgrades);
    let upgradeProductivity = 0;
    upgrades.forEach((upgrade) => {
      if (upgrade.bought) {
        upgradeProductivity += upgrade.productivity;
      }
    });
    this.upgradeIncrease = upgradeProductivity;
  }
calculateUpgradeIncrease ( ) { const upgrades = Object . values ( this . upgrades ) ; let upgradeProductivity = 0 ; upgrades . forEach ( ( upgrade ) => { if ( upgrade . bought ) { upgradeProductivity += upgrade . productivity ; } } ) ; this . upgradeIncrease = upgradeProductivity ; }
calculates the productivity increase from upgrades
calculates the productivity increase from upgrades