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:
parent
7c895952bf
commit
ca76d130fd
6 changed files with 17 additions and 11 deletions
js
|
@ -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 ************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue