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,7 +300,8 @@ function doReset(layer, force=false) {
|
||||||
layers[layer].onPrestige(gain)
|
layers[layer].onPrestige(gain)
|
||||||
|
|
||||||
addPoints(layer, gain)
|
addPoints(layer, gain)
|
||||||
|
updateMilestones(layer)
|
||||||
|
|
||||||
if (!player[layer].unl) {
|
if (!player[layer].unl) {
|
||||||
player[layer].unl = true;
|
player[layer].unl = true;
|
||||||
needCanvasUpdate = true;
|
needCanvasUpdate = true;
|
||||||
|
|
|
@ -140,7 +140,7 @@ for (layer in layers){
|
||||||
}
|
}
|
||||||
|
|
||||||
function addLayer(layerName, layerData){ // Call this to add layers from a different file!
|
function addLayer(layerName, layerData){ // Call this to add layers from a different file!
|
||||||
layers[name] = layerData
|
layers[layerName] = layerData
|
||||||
LAYERS = Object.keys(layers);
|
LAYERS = Object.keys(layers);
|
||||||
ROW_LAYERS = {}
|
ROW_LAYERS = {}
|
||||||
for (layer in layers){
|
for (layer in layers){
|
||||||
|
|
Loading…
Reference in a new issue