From dccdae2f2aa34009a1c00710c2541f9b823a48a6 Mon Sep 17 00:00:00 2001 From: Harley White Date: Tue, 7 Sep 2021 23:53:54 -0400 Subject: [PATCH] Many minor fixes, updated b_e --- changelog.md | 8 ++++++-- js/components.js | 13 ++++++------- js/technical/break_eternity.js | 8 ++++---- js/technical/systemComponents.js | 7 ++++--- js/utils.js | 4 ++-- js/utils/options.js | 1 + 6 files changed, 23 insertions(+), 18 deletions(-) diff --git a/changelog.md b/changelog.md index bfe6703..201c9ff 100644 --- a/changelog.md +++ b/changelog.md @@ -1,8 +1,12 @@ # The Modding Tree changelog: - +- Added option for shift-clicking nodes toggling their tooltips. +- Fixed NaN check for setting Decimal values with text boxes. - Added display-image, h-line, and v-line to documentation. - +- Fixed an issue with subtab glow colors. +- Fixed being able to buy upgrades on deactivated layers. +- Updated break_eternity library. +- Cleaned up buyable/clickable code. # v2.6.5.1 - 7/13/21 - Fixed offline production more. diff --git a/js/components.js b/js/components.js index 8ba3b75..aa3a4fa 100644 --- a/js/components.js +++ b/js/components.js @@ -254,7 +254,6 @@ function loadVue() { ` }) - // data = button size, in px Vue.component('buyables', { props: ['layer', 'data'], template: ` @@ -271,11 +270,11 @@ function loadVue() { }) Vue.component('buyable', { - props: ['layer', 'data', 'size'], + props: ['layer', 'data'], template: `
@@ -18,7 +18,7 @@ var systemComponents = { - + + ` }, diff --git a/js/utils.js b/js/utils.js index 75705d3..e1dc004 100644 --- a/js/utils.js +++ b/js/utils.js @@ -53,7 +53,7 @@ function buyUpgrade(layer, id) { function buyUpg(layer, id) { if (!tmp[layer].upgrades || !tmp[layer].upgrades[id]) return let upg = tmp[layer].upgrades[id] - if (!player[layer].unlocked) return + if (!player[layer].unlocked || player[layer].deactivated) return if (!tmp[layer].upgrades[id].unlocked) return if (player[layer].upgrades.includes(id)) return if (upg.canAfford === false) return @@ -346,7 +346,7 @@ document.title = modInfo.name function toValue(value, oldValue) { if (oldValue instanceof Decimal) { value = new Decimal (value) - if (value.eq(decimalNaN)) return decimalZero + if (checkDecimalNaN(value)) return decimalZero return value } if (!isNaN(oldValue)) diff --git a/js/utils/options.js b/js/utils/options.js index 383194a..fa575a9 100644 --- a/js/utils/options.js +++ b/js/utils/options.js @@ -13,6 +13,7 @@ function getStartOptions() { showStory: true, forceOneTab: false, oldStyle: false, + tooltipForcing: true, } }