From 99191f3aa87b2362516971c1fdd64d21b16f87b7 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 29 Sep 2025 12:31:01 -0400 Subject: Show when goal is reachable in tracker --- apworld/client/player.gd | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'apworld/client/player.gd') diff --git a/apworld/client/player.gd b/apworld/client/player.gd index 366c3b0..5417a48 100644 --- a/apworld/client/player.gd +++ b/apworld/client/player.gd @@ -1,21 +1,5 @@ extends "res://scripts/nodes/player.gd" -const kEndingNameByVictoryValue = { - 0: "GRAY", - 1: "PURPLE", - 2: "MINT", - 3: "BLACK", - 4: "BLUE", - 5: "CYAN", - 6: "RED", - 7: "PLUM", - 8: "ORANGE", - 9: "GOLD", - 10: "YELLOW", - 11: "GREEN", - 12: "WHITE", -} - signal evaluate_solvability var compass @@ -138,7 +122,7 @@ func _ready(): get_parent().add_child.call_deferred(locationListener) - if kEndingNameByVictoryValue.get(ap.victory_condition, null) == ending.get_name(): + if ap.kEndingNameByVictoryValue.get(ap.victory_condition, null) == ending.get_name(): var victoryListener = ap.SCRIPT_victoryListener.new() victoryListener.name = "victoryListener" victoryListener.senders.append(NodePath("/root/scene/" + ending.get_path())) @@ -216,9 +200,9 @@ func _ready(): var sign2 = sign_prefab.instantiate() sign2.position = Vector3(-7, 4, -15.01) - sign2.text = "%s ending" % kEndingNameByVictoryValue.get(ap.victory_condition, "?") + sign2.text = "%s ending" % ap.kEndingNameByVictoryValue.get(ap.victory_condition, "?") - var sign2_color = kEndingNameByVictoryValue.get(ap.victory_condition, "coral").to_lower() + var sign2_color = ap.kEndingNameByVictoryValue.get(ap.victory_condition, "coral").to_lower() if sign2_color == "white": sign2_color = "silver" -- cgit 1.4.1