about summary refs log tree commit diff stats
path: root/apworld/client/textclient.gd
diff options
context:
space:
mode:
Diffstat (limited to 'apworld/client/textclient.gd')
-rw-r--r--apworld/client/textclient.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/apworld/client/textclient.gd b/apworld/client/textclient.gd index ce28a3a..571f3d6 100644 --- a/apworld/client/textclient.gd +++ b/apworld/client/textclient.gd
@@ -205,6 +205,7 @@ func update_locations(reset_locations = true):
205 for location_id in ap.client._accessible_locations: 205 for location_id in ap.client._accessible_locations:
206 if not ap.client._checked_locations.has(location_id): 206 if not ap.client._checked_locations.has(location_id):
207 var location_name = gamedata.location_name_by_id.get(location_id, "(Unknown)") 207 var location_name = gamedata.location_name_by_id.get(location_id, "(Unknown)")
208 var map_name = gamedata.get_map_name_for_location(location_id)
208 ( 209 (
209 locations 210 locations
210 . append( 211 . append(
@@ -214,6 +215,7 @@ func update_locations(reset_locations = true):
214 "id": location_id, 215 "id": location_id,
215 "ignored": ap._ignored_locations.has(location_id), 216 "ignored": ap._ignored_locations.has(location_id),
216 "hint": ap.client._hinted_locations.has(location_id), 217 "hint": ap.client._hinted_locations.has(location_id),
218 "current": ap.prioritize_current_map and map_name == global.map,
217 } 219 }
218 ) 220 )
219 ) 221 )
@@ -221,6 +223,7 @@ func update_locations(reset_locations = true):
221 for port_id in ap.client._accessible_worldports: 223 for port_id in ap.client._accessible_worldports:
222 if not ap.client._checked_worldports.has(port_id): 224 if not ap.client._checked_worldports.has(port_id):
223 var port_name = gamedata.get_worldport_display_name(port_id) 225 var port_name = gamedata.get_worldport_display_name(port_id)
226 var map_name = gamedata.get_map_name_for_port(port_id)
224 ( 227 (
225 locations 228 locations
226 . append( 229 . append(
@@ -230,6 +233,7 @@ func update_locations(reset_locations = true):
230 "id": port_id, 233 "id": port_id,
231 "ignored": false, 234 "ignored": false,
232 "hint": false, 235 "hint": false,
236 "current": ap.prioritize_current_map and map_name == global.map,
233 } 237 }
234 ) 238 )
235 ) 239 )
@@ -362,6 +366,8 @@ func _cmp_tracker_objects(a, b) -> bool:
362 return !a["ignored"] 366 return !a["ignored"]
363 elif a["hint"] != b["hint"]: 367 elif a["hint"] != b["hint"]:
364 return a["hint"] 368 return a["hint"]
369 elif a["current"] != b["current"]:
370 return a["current"]
365 else: 371 else:
366 return a["name"] < b["name"] 372 return a["name"] < b["name"]
367 373