diff --git a/js/game.js b/js/game.js index 7a8a19b..d49a391 100644 --- a/js/game.js +++ b/js/game.js @@ -300,7 +300,8 @@ function doReset(layer, force=false) { layers[layer].onPrestige(gain) addPoints(layer, gain) - + updateMilestones(layer) + if (!player[layer].unl) { player[layer].unl = true; needCanvasUpdate = true; diff --git a/js/layers.js b/js/layers.js index 8b06066..81a2c72 100644 --- a/js/layers.js +++ b/js/layers.js @@ -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){