1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 09:21:46 +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

@ -186,9 +186,10 @@ function doReset(layer, force=false) {
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)