From 6688c9b644ab50b14dc2bfe02f8fe9258acc014e Mon Sep 17 00:00:00 2001 From: Braeden Date: Sun, 27 Oct 2024 18:26:36 -0400 Subject: [PATCH] chore: Update Milestones in onPrestige() --- js/game.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/game.js b/js/game.js index ffca117..a0a16ca 100644 --- a/js/game.js +++ b/js/game.js @@ -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)