1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-23 17:51:06 +00:00

Fixed issues with challenges

This commit is contained in:
Acamaeda 2020-10-29 20:33:39 -04:00
parent 7c895952bf
commit ca76d130fd
6 changed files with 17 additions and 11 deletions

View file

@ -453,6 +453,10 @@ function hasChallenge(layer, id){
return (player[layer].challenges[id])
}
function maxedChallenge(layer, id){
return (player[layer].challenges[id] >= tmp[layer].challenges[id].completionLimit)
}
function challengeCompletions(layer, id){
return (player[layer].challenges[id])
}
@ -585,7 +589,7 @@ function inChallenge(layer, id){
if (challenge==id) return true
if (layers[layer].challenges[challenge].countsAs)
return tmp[layer].challenges[id].countsAs.includes(id)
return tmp[layer].challenges[challenge].countsAs.includes(id)
}
// ************ Misc ************