diff --git a/js/game.js b/js/game.js index b2ba59a..2cf2447 100644 --- a/js/game.js +++ b/js/game.js @@ -42,7 +42,7 @@ function getStartPlayer() { function getPointGen() { let gain = new Decimal(1) - if (player.c.upgrades.includes(12)) gain = gain.times(layers.c.upgrades["12"].effect()) + if (hasUpg("c", 12)) gain = gain.times(layers.c.upgrades[12].effect()) return gain } diff --git a/js/layers.js b/js/layers.js index 74df6b4..5ce48d7 100644 --- a/js/layers.js +++ b/js/layers.js @@ -20,8 +20,8 @@ addLayer("c", { canBuyMax() {}, // Only needed for static layers with buy max gainMult() { // Calculate the multiplier for main currency from bonuses mult = new Decimal(1) - if (hasUpg(this.layer, 166)) mult = mult.times(2) - if (hasUpg(this.layer, 12)) mult = mult.times(this.upgrades[12].effect()) + if (hasUpg(this.layer, 166)) mult = mult.times(2) // These upgrades don't exist + if (hasUpg(this.layer, 120)) mult = mult.times(this.upgrades[12].effect()) return mult }, gainExp() { // Calculate the exponent on main currency from bonuses