mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-25 01:41:45 +00:00
Fixed bugs with hasMilestone and incr_order
This commit is contained in:
parent
4ae1cad2eb
commit
091ff24b9f
1 changed files with 4 additions and 3 deletions
|
@ -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){
|
||||||
|
|
Loading…
Reference in a new issue