1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-01 05:51:07 +00:00

Optimized presigeButtonText

This commit is contained in:
Harley White 2021-05-02 21:29:10 -04:00
parent 87a32fbcce
commit faebc2f075
3 changed files with 2 additions and 4 deletions

View file

@ -366,7 +366,7 @@ function focused(x) {
function prestigeButtonText(layer) {
if (layers[layer].prestigeButtonText !== undefined)
return layers[layer].prestigeButtonText()
return run(layers[layer].prestigeButtonText(), layers[layer])
else if (tmp[layer].type == "normal")
return `${player[layer].points.lt(1e3) ? (tmp[layer].resetDescription !== undefined ? tmp[layer].resetDescription : "Reset for ") : ""}+<b>${formatWhole(tmp[layer].resetGain)}</b> ${tmp[layer].resource} ${tmp[layer].resetGain.lt(100) && player[layer].points.lt(1e3) ? `<br><br>Next at ${(tmp[layer].roundUpCost ? formatWhole(tmp[layer].nextAt) : format(tmp[layer].nextAt))} ${tmp[layer].baseResource}` : ""}`
else if (tmp[layer].type == "static")