mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Pokemon Emerald: Fix wrong place for initialization (#3870)
This commit is contained in:
@@ -122,6 +122,7 @@ class PokemonEmeraldClient(BizHawkClient):
|
|||||||
game = "Pokemon Emerald"
|
game = "Pokemon Emerald"
|
||||||
system = "GBA"
|
system = "GBA"
|
||||||
patch_suffix = ".apemerald"
|
patch_suffix = ".apemerald"
|
||||||
|
|
||||||
local_checked_locations: Set[int]
|
local_checked_locations: Set[int]
|
||||||
local_set_events: Dict[str, bool]
|
local_set_events: Dict[str, bool]
|
||||||
local_found_key_items: Dict[str, bool]
|
local_found_key_items: Dict[str, bool]
|
||||||
@@ -139,8 +140,7 @@ class PokemonEmeraldClient(BizHawkClient):
|
|||||||
|
|
||||||
current_map: Optional[int]
|
current_map: Optional[int]
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def initialize_client(self):
|
||||||
super().__init__()
|
|
||||||
self.local_checked_locations = set()
|
self.local_checked_locations = set()
|
||||||
self.local_set_events = {}
|
self.local_set_events = {}
|
||||||
self.local_found_key_items = {}
|
self.local_found_key_items = {}
|
||||||
@@ -182,9 +182,7 @@ class PokemonEmeraldClient(BizHawkClient):
|
|||||||
ctx.want_slot_data = True
|
ctx.want_slot_data = True
|
||||||
ctx.watcher_timeout = 0.125
|
ctx.watcher_timeout = 0.125
|
||||||
|
|
||||||
self.death_counter = None
|
self.initialize_client()
|
||||||
self.previous_death_link = 0
|
|
||||||
self.ignore_next_death_link = False
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user