From 1894cb966617a9187e9114726f21f76534b940b8 Mon Sep 17 00:00:00 2001 From: Harley White Date: Mon, 17 May 2021 21:17:09 -0400 Subject: [PATCH] Fixed autoUpgrade and tree node layering --- changelog.md | 2 -- js/game.js | 4 ++-- style.css | 3 --- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/changelog.md b/changelog.md index c3dd024..f5e0231 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,5 @@ # The Modding Tree changelog: -- Bars will visually update more quickly. - # v2.5.7 - 5/15/21 - Added a particle system! Not only can it be used for visual effects, but particles can interact with the mouse. They could be used to create golden cookies or collectables, for example. - Added marked feature to buyables, clickables, and challenges. By default, stars multi-completion challenges when maxed. diff --git a/js/game.js b/js/game.js index c70aee4..962810a 100644 --- a/js/game.js +++ b/js/game.js @@ -379,8 +379,8 @@ function gameLoop(diff) { let layer = OTHER_LAYERS[row][item] if (tmp[layer].autoPrestige && tmp[layer].canReset) doReset(layer); if (layers[layer].automate) layers[layer].automate(); - player[layer].best = player[layer].best.max(player[layer].points) - if (layers[layer].autoUpgrade) autobuyUpgrades(layer) + player[layer].best = player[layer].best.max(player[layer].points) + if (tmp[layer].autoUpgrade) autobuyUpgrades(layer) } } diff --git a/style.css b/style.css index 6f9b3ec..19aa98e 100644 --- a/style.css +++ b/style.css @@ -121,20 +121,17 @@ h1, h2, h3, b, input { .resetNotify { box-shadow: var(--hqProperty2a), 0 0 8px #ffffff; - z-index: 3 } .treeNode.can:hover { transform: scale(1.15, 1.15); box-shadow: var(--hqProperty2a), 0 0 20px var(--points); - z-index: 4 } .notify { transform: scale(1.05, 1.05); border-color: rgba(0, 0, 0, 0.125); box-shadow: var(--hqProperty2a), 0 0 20px #ff0000; - z-index: 3 } .bought {