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

Highlight nodes even if player is on the tab, also a tmp fix

This commit is contained in:
Harley White 2021-05-03 13:30:01 -04:00
parent 23a5865642
commit 801570167d
3 changed files with 5 additions and 3 deletions

View file

@ -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.

View file

@ -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){

View file

@ -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
}
}
}