calculateStatistics() {
    const stats = {};
    stats.baseIncrease = this.baseIncrease;
    stats.upgradeIncrease = this.upgradeIncrease;
    stats.multiplier = this.clickMuliplier;
    stats.timesClicked = this.timesClicked;
    stats.helperCPS = 0;
    // checking if an instance of an helper exists and then add the cps to stats object
    if (this.sleepyCat) stats.helperCPS += this.sleepyCat.cps * this.sleepyCat.amount;
    if (this.HTMLBaby) stats.helperCPS += this.HTMLBaby.cps * this.HTMLBaby.amount;
    if (this.outsourceEveything) stats.helperCPS += this.outsourceEveything.cps * this.outsourceEveything.amount;
    if (this.skynet) stats.helperCPS += this.skynet.cps * this.skynet.amount;
    ui.displayStatistics(stats);
  }
// calculates basic statistics and passes it to display function as an object
calculates basic statistics and passes it to display function as an object
calculates basic statistics and passes it to display function as an object
calculateStatistics() {
    const stats = {};
    stats.baseIncrease = this.baseIncrease;
    stats.upgradeIncrease = this.upgradeIncrease;
    stats.multiplier = this.clickMuliplier;
    stats.timesClicked = this.timesClicked;
    stats.helperCPS = 0;
    if (this.sleepyCat) stats.helperCPS += this.sleepyCat.cps * this.sleepyCat.amount;
    if (this.HTMLBaby) stats.helperCPS += this.HTMLBaby.cps * this.HTMLBaby.amount;
    if (this.outsourceEveything) stats.helperCPS += this.outsourceEveything.cps * this.outsourceEveything.amount;
    if (this.skynet) stats.helperCPS += this.skynet.cps * this.skynet.amount;
    ui.displayStatistics(stats);
  }
calculateStatistics ( ) { const stats = { } ; stats . baseIncrease = this . baseIncrease ; stats . upgradeIncrease = this . upgradeIncrease ; stats . multiplier = this . clickMuliplier ; stats . timesClicked = this . timesClicked ; stats . helperCPS = 0 ; if ( this . sleepyCat ) stats . helperCPS += this . sleepyCat . cps * this . sleepyCat . amount ; if ( this . HTMLBaby ) stats . helperCPS += this . HTMLBaby . cps * this . HTMLBaby . amount ; if ( this . outsourceEveything ) stats . helperCPS += this . outsourceEveything . cps * this . outsourceEveything . amount ; if ( this . skynet ) stats . helperCPS += this . skynet . cps * this . skynet . amount ; ui . displayStatistics ( stats ) ; }
calculates basic statistics and passes it to display function as an object
calculates basic statistics and passes it to display function as an object
// checking if an instance of an helper exists and then add the cps to stats object