mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-12-03 13:21:34 +00:00
chore: Switch to maxedChallenge
This commit is contained in:
parent
d4136f72da
commit
602c216db2
1 changed files with 2 additions and 2 deletions
|
@ -27,12 +27,12 @@ function constructNodeStyle(layer){
|
|||
|
||||
function challengeStyle(layer, id) {
|
||||
if (player[layer].activeChallenge == id && canCompleteChallenge(layer, id)) return "canComplete"
|
||||
else if (hasChallenge(layer, id)) return "done"
|
||||
else if (maxedChallenge(layer, id)) return "done"
|
||||
return "locked"
|
||||
}
|
||||
|
||||
function challengeButtonText(layer, id) {
|
||||
return (player[layer].activeChallenge==(id)?(canCompleteChallenge(layer, id)?"Finish":"Exit Early"):(hasChallenge(layer, id)?"Completed":"Start"))
|
||||
return (player[layer].activeChallenge==(id)?(canCompleteChallenge(layer, id)?"Finish":"Exit Early"):(maxedChallenge(layer, id)?"Completed":"Start"))
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue