Pokemon Emerald: Use new check_locations helper (#4518)

This commit is contained in:
Bryce Wilson 2025-01-19 01:21:54 -08:00 committed by GitHub
parent 992f192529
commit 0bb657d2c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 5 deletions

View File

@ -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: