From 602c216db21175891442f299e4023f340fc206d4 Mon Sep 17 00:00:00 2001 From: Braeden Date: Sun, 27 Oct 2024 17:28:08 -0400 Subject: [PATCH] chore: Switch to maxedChallenge --- js/technical/displays.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/technical/displays.js b/js/technical/displays.js index c7b1052..1cff14a 100644 --- a/js/technical/displays.js +++ b/js/technical/displays.js @@ -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")) }