diff --git a/changelog.md b/changelog.md index 87248c4..85f4fc5 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ # v2.4.2 (beta) - Optimizations, hopefully a significant amount. +- Layer nodes will be highlighted even if the player is on the same tab. - Added buyable purchaseLimit. - Amount is automatically supplied to buyable cost and effect functions. diff --git a/js/game.js b/js/game.js index 029ab0c..4e3aa57 100644 --- a/js/game.js +++ b/js/game.js @@ -77,7 +77,6 @@ function softcap(value, cap, power = 0.5) { // Return true if the layer should be highlighted. By default checks for upgrades only. function shouldNotify(layer){ - if (player.tab == layer || player.navTab == layer) return false for (id in tmp[layer].upgrades){ if (!isNaN(id)){ if (canAffordUpgrade(layer, id) && !hasUpgrade(layer, id) && tmp[layer].upgrades[id].unlocked){ diff --git a/js/technical/temp.js b/js/technical/temp.js index 08cc63a..b94a7aa 100644 --- a/js/technical/temp.js +++ b/js/technical/temp.js @@ -120,8 +120,10 @@ function updateTempData(layerData, tmpData, funcsData) { } } - - tmpData[item]=value + if (tmpData[item] === undefined) + Vue.set(tmpData, item, value) + else + tmpData[item]=value } } }