diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-29 12:31:01 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-29 12:31:01 -0400 |
| commit | 99191f3aa87b2362516971c1fdd64d21b16f87b7 (patch) | |
| tree | 336a0fff582e0709f7cc60b3e46fff5f10d6b649 /apworld/client/player.gd | |
| parent | 91f829a193b9fd7686bd401bc0704f26bf75dafc (diff) | |
| download | lingo2-archipelago-99191f3aa87b2362516971c1fdd64d21b16f87b7.tar.gz lingo2-archipelago-99191f3aa87b2362516971c1fdd64d21b16f87b7.tar.bz2 lingo2-archipelago-99191f3aa87b2362516971c1fdd64d21b16f87b7.zip | |
Show when goal is reachable in tracker
Diffstat (limited to 'apworld/client/player.gd')
| -rw-r--r-- | apworld/client/player.gd | 22 |
1 files changed, 3 insertions, 19 deletions
| 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 @@ | |||
| 1 | extends "res://scripts/nodes/player.gd" | 1 | extends "res://scripts/nodes/player.gd" |
| 2 | 2 | ||
| 3 | const kEndingNameByVictoryValue = { | ||
| 4 | 0: "GRAY", | ||
| 5 | 1: "PURPLE", | ||
| 6 | 2: "MINT", | ||
| 7 | 3: "BLACK", | ||
| 8 | 4: "BLUE", | ||
| 9 | 5: "CYAN", | ||
| 10 | 6: "RED", | ||
| 11 | 7: "PLUM", | ||
| 12 | 8: "ORANGE", | ||
| 13 | 9: "GOLD", | ||
| 14 | 10: "YELLOW", | ||
| 15 | 11: "GREEN", | ||
| 16 | 12: "WHITE", | ||
| 17 | } | ||
| 18 | |||
| 19 | signal evaluate_solvability | 3 | signal evaluate_solvability |
| 20 | 4 | ||
| 21 | var compass | 5 | var compass |
| @@ -138,7 +122,7 @@ func _ready(): | |||
| 138 | 122 | ||
| 139 | get_parent().add_child.call_deferred(locationListener) | 123 | get_parent().add_child.call_deferred(locationListener) |
| 140 | 124 | ||
| 141 | if kEndingNameByVictoryValue.get(ap.victory_condition, null) == ending.get_name(): | 125 | if ap.kEndingNameByVictoryValue.get(ap.victory_condition, null) == ending.get_name(): |
| 142 | var victoryListener = ap.SCRIPT_victoryListener.new() | 126 | var victoryListener = ap.SCRIPT_victoryListener.new() |
| 143 | victoryListener.name = "victoryListener" | 127 | victoryListener.name = "victoryListener" |
| 144 | victoryListener.senders.append(NodePath("/root/scene/" + ending.get_path())) | 128 | victoryListener.senders.append(NodePath("/root/scene/" + ending.get_path())) |
| @@ -216,9 +200,9 @@ func _ready(): | |||
| 216 | 200 | ||
| 217 | var sign2 = sign_prefab.instantiate() | 201 | var sign2 = sign_prefab.instantiate() |
| 218 | sign2.position = Vector3(-7, 4, -15.01) | 202 | sign2.position = Vector3(-7, 4, -15.01) |
| 219 | sign2.text = "%s ending" % kEndingNameByVictoryValue.get(ap.victory_condition, "?") | 203 | sign2.text = "%s ending" % ap.kEndingNameByVictoryValue.get(ap.victory_condition, "?") |
| 220 | 204 | ||
| 221 | var sign2_color = kEndingNameByVictoryValue.get(ap.victory_condition, "coral").to_lower() | 205 | var sign2_color = ap.kEndingNameByVictoryValue.get(ap.victory_condition, "coral").to_lower() |
| 222 | if sign2_color == "white": | 206 | if sign2_color == "white": |
| 223 | sign2_color = "silver" | 207 | sign2_color = "silver" |
| 224 | 208 | ||
