about summary refs log tree commit diff stats
path: root/apworld/client/client.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-09-29 12:31:01 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-09-29 12:31:01 -0400
commit99191f3aa87b2362516971c1fdd64d21b16f87b7 (patch)
tree336a0fff582e0709f7cc60b3e46fff5f10d6b649 /apworld/client/client.gd
parent91f829a193b9fd7686bd401bc0704f26bf75dafc (diff)
downloadlingo2-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.gd4
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 = {}
24var _slot_data = {} 24var _slot_data = {}
25var _accessible_locations = [] 25var _accessible_locations = []
26var _accessible_worldports = [] 26var _accessible_worldports = []
27var _goal_accessible = false
27 28
28signal could_not_connect 29signal could_not_connect
29signal connect_status 30signal 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
66func disconnect_from_ap(): 68func 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":