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/client.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/client.gd')
| -rw-r--r-- | apworld/client/client.gd | 4 |
1 files changed, 4 insertions, 0 deletions
| diff --git a/apworld/client/client.gd b/apworld/client/client.gd index a23e85a..62d7fd8 100644 --- a/apworld/client/client.gd +++ b/apworld/client/client.gd | |||
| @@ -24,6 +24,7 @@ var _received_items = {} | |||
| 24 | var _slot_data = {} | 24 | var _slot_data = {} |
| 25 | var _accessible_locations = [] | 25 | var _accessible_locations = [] |
| 26 | var _accessible_worldports = [] | 26 | var _accessible_worldports = [] |
| 27 | var _goal_accessible = false | ||
| 27 | 28 | ||
| 28 | signal could_not_connect | 29 | signal could_not_connect |
| 29 | signal connect_status | 30 | signal connect_status |
| @@ -61,6 +62,7 @@ func _reset_state(): | |||
| 61 | _checked_worldports = [] | 62 | _checked_worldports = [] |
| 62 | _accessible_locations = [] | 63 | _accessible_locations = [] |
| 63 | _accessible_worldports = [] | 64 | _accessible_worldports = [] |
| 65 | _goal_accessible = false | ||
| 64 | 66 | ||
| 65 | 67 | ||
| 66 | func disconnect_from_ap(): | 68 | func disconnect_from_ap(): |
| @@ -174,6 +176,8 @@ func _on_web_socket_server_message_received(_peer_id: int, packet: String) -> vo | |||
| 174 | for port_id in message["worldports"]: | 176 | for port_id in message["worldports"]: |
| 175 | _accessible_worldports.append(int(port_id)) | 177 | _accessible_worldports.append(int(port_id)) |
| 176 | 178 | ||
| 179 | _goal_accessible = bool(message.get("goal", false)) | ||
| 180 | |||
| 177 | accessible_locations_updated.emit() | 181 | accessible_locations_updated.emit() |
| 178 | 182 | ||
| 179 | elif cmd == "UpdateKeyboard": | 183 | elif cmd == "UpdateKeyboard": |
