mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-25 18:51:05 +00:00
Fixed prestigeButtonText
This commit is contained in:
parent
797447faa6
commit
f521874fb6
3 changed files with 3 additions and 3 deletions
js
|
@ -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 }` : ""}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue