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:
parent
e4bf4f63af
commit
6688c9b644
1 changed files with 4 additions and 3 deletions
|
@ -184,11 +184,12 @@ function doReset(layer, force=false) {
|
|||
if (tmp[layer].type=="static") {
|
||||
if (tmp[layer].baseAmount.lt(tmp[layer].nextAt)) return;
|
||||
gain =(tmp[layer].canBuyMax ? gain : 1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (layers[layer].onPrestige)
|
||||
if (layers[layer].onPrestige){
|
||||
updateMilestones(layer)
|
||||
run(layers[layer].onPrestige, layers[layer], gain)
|
||||
}
|
||||
|
||||
addPoints(layer, gain)
|
||||
updateMilestones(layer)
|
||||
|
|
Loading…
Reference in a new issue