1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 08:12:39 +00:00

Fixed prestigeButtonText

This commit is contained in:
Acamaeda 2020-12-14 13:51:19 -05:00
parent 797447faa6
commit f521874fb6
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ let modInfo = {
// Set your version in num and name
let VERSION = {
num: "2.3.3",
num: "2.3.3.1",
name: "Cooler and Newer Edition",
}

View file

@ -4,7 +4,7 @@ var gameEnded = false;
// Don't change this
const TMT_VERSION = {
tmtNum: "2.3.3",
tmtNum: "2.3.3.1",
tmtName: "Cooler and Newer Edition"
}

View file

@ -788,7 +788,7 @@ function focused(x) {
function prestigeButtonText(layer)
{
if (layers[layer].prestigeButtonTest !== undefined)
if (layers[layer].prestigeButtonText !== undefined)
return layers[layer].prestigeButtonText()
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 }` : ""}`