mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
Added a check for new milestones before resetting
This commit is contained in:
parent
914f932e0a
commit
cfc23834d4
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue