Skip to content

Commit

Permalink
Pokemon Emerald: Fix wrong place for initialization (ArchipelagoMW#3870)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zunawe authored Sep 4, 2024
1 parent b8d7ef2 commit d65863f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions worlds/pokemon_emerald/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class PokemonEmeraldClient(BizHawkClient):
game = "Pokemon Emerald"
system = "GBA"
patch_suffix = ".apemerald"

local_checked_locations: Set[int]
local_set_events: Dict[str, bool]
local_found_key_items: Dict[str, bool]
Expand All @@ -139,8 +140,7 @@ class PokemonEmeraldClient(BizHawkClient):

current_map: Optional[int]

def __init__(self) -> None:
super().__init__()
def initialize_client(self):
self.local_checked_locations = set()
self.local_set_events = {}
self.local_found_key_items = {}
Expand Down Expand Up @@ -182,9 +182,7 @@ async def validate_rom(self, ctx: "BizHawkClientContext") -> bool:
ctx.want_slot_data = True
ctx.watcher_timeout = 0.125

self.death_counter = None
self.previous_death_link = 0
self.ignore_next_death_link = False
self.initialize_client()

return True

Expand Down

0 comments on commit d65863f

Please sign in to comment.