static handleHelperItemBuy(e) {
    const boughtHelper = e.target.id;
    // placeholder for future multi-buy option
    const amount = 1;
    if (clickerApp[boughtHelper] && clickerApp[boughtHelper].price <= clickerApp.score) {
      clickerApp.subtractScore(clickerApp[boughtHelper].price);
      clickerApp[boughtHelper].increaseAmount(amount);
    }
  }
// called when player buys a new helper
called when player buys a new helper
called when player buys a new helper
static handleHelperItemBuy(e) {
    const boughtHelper = e.target.id;
    const amount = 1;
    if (clickerApp[boughtHelper] && clickerApp[boughtHelper].price <= clickerApp.score) {
      clickerApp.subtractScore(clickerApp[boughtHelper].price);
      clickerApp[boughtHelper].increaseAmount(amount);
    }
  }
static handleHelperItemBuy ( e ) { const boughtHelper = e . target . id ; const amount = 1 ; if ( clickerApp [ boughtHelper ] && clickerApp [ boughtHelper ] . price <= clickerApp . score ) { clickerApp . subtractScore ( clickerApp [ boughtHelper ] . price ) ; clickerApp [ boughtHelper ] . increaseAmount ( amount ) ; } }
called when player buys a new helper
called when player buys a new helper
// placeholder for future multi-buy option