1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 17:31:50 +00:00

Added a check for new milestones before resetting

This commit is contained in:
Acamaeda 2020-09-27 00:04:08 -04:00
parent 914f932e0a
commit cfc23834d4
2 changed files with 3 additions and 2 deletions

View file

@ -300,6 +300,7 @@ function doReset(layer, force=false) {
layers[layer].onPrestige(gain)
addPoints(layer, gain)
updateMilestones(layer)
if (!player[layer].unl) {
player[layer].unl = true;

View file

@ -140,7 +140,7 @@ for (layer in layers){
}
function addLayer(layerName, layerData){ // Call this to add layers from a different file!
layers[name] = layerData
layers[layerName] = layerData
LAYERS = Object.keys(layers);
ROW_LAYERS = {}
for (layer in layers){