1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00

Force-displayed tooltips are not hidden by resets.

This commit is contained in:
Harley White 2021-05-05 16:14:32 -04:00
parent 759be4448d
commit 5ed897bd7b
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@
- Amount is automatically supplied to buyable cost and effect functions. - Amount is automatically supplied to buyable cost and effect functions.
- Locked (not yet visible) milestones no longer take up space. Also fixed hidden milestones taking a tiny bit of space. - Locked (not yet visible) milestones no longer take up space. Also fixed hidden milestones taking a tiny bit of space.
- Re-centered respec buttons. - Re-centered respec buttons.
- Force-displayed tooltips are not hidden by resets.
# v2.4.1 - 4/29/21 # v2.4.1 - 4/29/21
- A number of minor fixes, many thanks to thepaperpilot. - A number of minor fixes, many thanks to thepaperpilot.

View file

@ -131,7 +131,7 @@ function rowReset(row, layer) {
} }
function layerDataReset(layer, keep = []) { function layerDataReset(layer, keep = []) {
let storedData = {unlocked: player[layer].unlocked} // Always keep unlocked let storedData = {unlocked: player[layer].unlocked, forceTooltip: player[layer].forceTooltip} // Always keep these
for (thing in keep) { for (thing in keep) {
if (player[layer][keep[thing]] !== undefined) if (player[layer][keep[thing]] !== undefined)