Skip to content

Commit

Permalink
asddsasadadsdasasddassadads the game is bugged
Browse files Browse the repository at this point in the history
  • Loading branch information
WiktorProj committed Aug 25, 2024
1 parent 1bfca46 commit b6d4577
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion MeTMT/js/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
},
},
Expand Down
2 changes: 1 addition & 1 deletion MeTMT/js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b6d4577

Please sign in to comment.