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

Fixed bugs with hasMilestone and incr_order

This commit is contained in:
Acamaeda 2020-10-05 21:38:50 -04:00
parent 4ae1cad2eb
commit 091ff24b9f

View file

@ -162,8 +162,9 @@ function doReset(layer, force=false) {
needCanvasUpdate = true; needCanvasUpdate = true;
if (layers[layer].incr_order){ if (layers[layer].incr_order){
for (lr in layers[layer].incr_order) lrs = layers[layer].incr_order
if (!player[lr].unl) player[lr].order++ for (lr in lrs)
if (!player[lrs[lr]].unl) player[lrs[lr]].order++
} }
} }
@ -205,7 +206,7 @@ function hasUpg(layer, id){
} }
function hasMilestone(layer, id){ function hasMilestone(layer, id){
return (player[layer].milestones.includes(toNumber(id))) return (player[layer].milestones.includes(toNumber(id)) || player[layer].milestones.includes(id))
} }
function hasChall(layer, id){ function hasChall(layer, id){