diff --git a/MeTMT/js/layers.js b/MeTMT/js/layers.js index be505b9..19e5fda 100644 --- a/MeTMT/js/layers.js +++ b/MeTMT/js/layers.js @@ -615,12 +615,15 @@ addLayer("u", { 11: { cost(x) { return new Decimal(1).mul(x).pow(15) }, title: "Ultra Buyable!", - display() { return "Amount: " + format(getBuyableAmount(this.layer, this.id).floor()) + "\nCost: " + format(this.cost().floor()) + " ulra points\nEffect: x" + format(new Decimal(1).mul(this.cost().sub(1)).times(50).pow(0.9).add(1)) + " point gain"}, + display() { return "Amount: " + format(getBuyableAmount(this.layer, this.id).floor()) + "\nCost: " + format(this.cost().floor()) + " ulra points\nEffect: x" + format(this.effect()) + " point gain"}, canAfford() { return player[this.layer].points.gte(this.cost()) }, buy() { player[this.layer].points = player[this.layer].points.sub(this.cost()) setBuyableAmount(this.layer, this.id, getBuyableAmount(this.layer, this.id).add(1)) }, + effect() { + return new Decimal(1).mul(this.cost().sub(1)).times(50).pow(0.9).add(1) + }, unlocked() {return player['+'].points.gte(12)} }, }, diff --git a/MeTMT/js/mod.js b/MeTMT/js/mod.js index 4274742..f496b8c 100644 --- a/MeTMT/js/mod.js +++ b/MeTMT/js/mod.js @@ -56,7 +56,7 @@ function getPointGen() { if (player['+'].points.gte(12)) gain = gain.times(3) if (hasUpgrade('i', 11)) gain = gain.times(50) if (hasUpgrade('i', 12)) gain = gain.times(20) - gain = gain.times(new Decimal(1).mul(new Decimal(1).mul(x).pow(15).sub(1)).times(50).pow(0.9)).add(1) // it's jank but it works + if (getBuyableAmount('u',11).gte(1)) gain = gain.times(buyableEffect('u',11)) if (player['+'].points.gte(13)) gain = gain.times(1.5) return gain }