From 2805c36178ae18f974dfa62864d77235189dbf02 Mon Sep 17 00:00:00 2001 From: Harley White Date: Wed, 2 Jun 2021 16:53:20 -0400 Subject: [PATCH] resetsNothing now works immediately --- changelog.md | 1 + js/Demo/demoLayers.js | 2 +- js/game.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index b6506e5..9ea1375 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ - Fixed demo.html - You can now use "this" in tabFormat! - The prestige/sec display now shows decimals. +- resetsNothing now works immediately on a reset that enables it. - Added onComplete for milestones. - Fixed certain things skipping negative rows (now they are treated like non-numeric rows, and don't appear in the tree still). - Things are 0.2% more optimized. diff --git a/js/Demo/demoLayers.js b/js/Demo/demoLayers.js index 0e4fdf0..14d8457 100644 --- a/js/Demo/demoLayers.js +++ b/js/Demo/demoLayers.js @@ -290,7 +290,7 @@ addLayer("c", { }, }, - + // Optional, lets you format the tab yourself by listing components. You can create your own components in v.js. tabFormat: { "main tab": { diff --git a/js/game.js b/js/game.js index 3ad34fe..cbe49a0 100644 --- a/js/game.js +++ b/js/game.js @@ -217,7 +217,7 @@ function doReset(layer, force=false) { tmp[layer].baseAmount = decimalZero // quick fix } - if (tmp[layer].resetsNothing) return + if (run(layers[layer].resetsNothing, layers[layer])) return for (layerResetting in layers) {