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

chore: Update Milestones in onPrestige()

This commit is contained in:
Braeden 2024-10-27 18:26:36 -04:00
parent e4bf4f63af
commit 6688c9b644

View file

@ -184,11 +184,12 @@ function doReset(layer, force=false) {
if (tmp[layer].type=="static") { if (tmp[layer].type=="static") {
if (tmp[layer].baseAmount.lt(tmp[layer].nextAt)) return; if (tmp[layer].baseAmount.lt(tmp[layer].nextAt)) return;
gain =(tmp[layer].canBuyMax ? gain : 1) gain =(tmp[layer].canBuyMax ? gain : 1)
} }
if (layers[layer].onPrestige){
if (layers[layer].onPrestige) updateMilestones(layer)
run(layers[layer].onPrestige, layers[layer], gain) run(layers[layer].onPrestige, layers[layer], gain)
}
addPoints(layer, gain) addPoints(layer, gain)
updateMilestones(layer) updateMilestones(layer)