From 0bb657d2c867ae3edc6a3145843ffe235de2ae4a Mon Sep 17 00:00:00 2001 From: Bryce Wilson Date: Sun, 19 Jan 2025 01:21:54 -0800 Subject: [PATCH] Pokemon Emerald: Use new check_locations helper (#4518) --- worlds/pokemon_emerald/client.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/worlds/pokemon_emerald/client.py b/worlds/pokemon_emerald/client.py index 5add7b3f..411fdd1a 100644 --- a/worlds/pokemon_emerald/client.py +++ b/worlds/pokemon_emerald/client.py @@ -287,7 +287,7 @@ class PokemonEmeraldClient(BizHawkClient): pokedex_caught_bytes = read_result[0] game_clear = False - local_checked_locations = set() + local_checked_locations: set[int] = set() local_set_events = {flag_name: False for flag_name in TRACKER_EVENT_FLAGS} local_found_key_items = {location_name: False for location_name in KEY_LOCATION_FLAGS} defeated_legendaries = {legendary_name: False for legendary_name in LEGENDARY_NAMES.values()} @@ -350,10 +350,7 @@ class PokemonEmeraldClient(BizHawkClient): self.local_checked_locations = local_checked_locations if local_checked_locations is not None: - await ctx.send_msgs([{ - "cmd": "LocationChecks", - "locations": list(local_checked_locations), - }]) + await ctx.check_locations(local_checked_locations) # Send game clear if not ctx.finished_game and game_clear: