diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-27 21:06:32 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-27 21:06:32 -0400 |
| commit | 53e0509fcb20cc824e3fe5b3d3a826f09fc9c166 (patch) | |
| tree | d83573fe2209122cc1c87d0a60ab22e6b20d4ec9 /apworld/client/manager.gd | |
| parent | b0f474bee1c8e1111f7542bf4985136d9aedf340 (diff) | |
| download | lingo2-archipelago-53e0509fcb20cc824e3fe5b3d3a826f09fc9c166.tar.gz lingo2-archipelago-53e0509fcb20cc824e3fe5b3d3a826f09fc9c166.tar.bz2 lingo2-archipelago-53e0509fcb20cc824e3fe5b3d3a826f09fc9c166.zip | |
Treat worldports as items for tracker
Diffstat (limited to 'apworld/client/manager.gd')
| -rw-r--r-- | apworld/client/manager.gd | 8 |
1 files changed, 8 insertions, 0 deletions
| diff --git a/apworld/client/manager.gd b/apworld/client/manager.gd index afa3ebe..3facfba 100644 --- a/apworld/client/manager.gd +++ b/apworld/client/manager.gd | |||
| @@ -109,6 +109,7 @@ func _ready(): | |||
| 109 | client.hint_received.connect(_process_hint_received) | 109 | client.hint_received.connect(_process_hint_received) |
| 110 | client.accessible_locations_updated.connect(_on_accessible_locations_updated) | 110 | client.accessible_locations_updated.connect(_on_accessible_locations_updated) |
| 111 | client.checked_locations_updated.connect(_on_checked_locations_updated) | 111 | client.checked_locations_updated.connect(_on_checked_locations_updated) |
| 112 | client.checked_worldports_updated.connect(_on_checked_worldports_updated) | ||
| 112 | 113 | ||
| 113 | client.could_not_connect.connect(_client_could_not_connect) | 114 | client.could_not_connect.connect(_client_could_not_connect) |
| 114 | client.connect_status.connect(_client_connect_status) | 115 | client.connect_status.connect(_client_connect_status) |
| @@ -195,6 +196,7 @@ func _process_item(item, amount): | |||
| 195 | if gamedata.get_door_map_name(lock[0]) != global.map: | 196 | if gamedata.get_door_map_name(lock[0]) != global.map: |
| 196 | continue | 197 | continue |
| 197 | 198 | ||
| 199 | # TODO: fix doors opening from door groups | ||
| 198 | var receivers = gamedata.get_door_receivers(lock[0]) | 200 | var receivers = gamedata.get_door_receivers(lock[0]) |
| 199 | var scene = get_tree().get_root().get_node_or_null("scene") | 201 | var scene = get_tree().get_root().get_node_or_null("scene") |
| 200 | if scene != null: | 202 | if scene != null: |
| @@ -327,6 +329,12 @@ func _on_checked_locations_updated(): | |||
| 327 | textclient_node.update_locations() | 329 | textclient_node.update_locations() |
| 328 | 330 | ||
| 329 | 331 | ||
| 332 | func _on_checked_worldports_updated(): | ||
| 333 | var textclient_node = global.get_node("Textclient") | ||
| 334 | if textclient_node != null: | ||
| 335 | textclient_node.update_locations() | ||
| 336 | |||
| 337 | |||
| 330 | func _client_could_not_connect(message): | 338 | func _client_could_not_connect(message): |
| 331 | could_not_connect.emit(message) | 339 | could_not_connect.emit(message) |
| 332 | 340 | ||
