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:
parent
23a5865642
commit
801570167d
3 changed files with 5 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -120,7 +120,9 @@ function updateTempData(layerData, tmpData, funcsData) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
if (tmpData[item] === undefined)
|
||||
Vue.set(tmpData, item, value)
|
||||
else
|
||||
tmpData[item]=value
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue