File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ class PokemonEmeraldWorld(World):
87
87
location_name_groups = LOCATION_GROUPS
88
88
89
89
data_version = 2
90
- required_client_version = (0 , 4 , 5 )
90
+ required_client_version = (0 , 4 , 6 )
91
91
92
92
badge_shuffle_info : Optional [List [Tuple [PokemonEmeraldLocation , PokemonEmeraldItem ]]]
93
93
hm_shuffle_info : Optional [List [Tuple [PokemonEmeraldLocation , PokemonEmeraldItem ]]]
Original file line number Diff line number Diff line change 87
87
]
88
88
KEY_LOCATION_FLAG_MAP = {data .locations [location_name ].flag : location_name for location_name in KEY_LOCATION_FLAGS }
89
89
90
- LEGENDARY_NAMES = {
90
+ # .lower() keys for backward compatibility between 0.4.5 and 0.4.6
91
+ LEGENDARY_NAMES = {k .lower (): v for k , v in {
91
92
"Groudon" : "GROUDON" ,
92
93
"Kyogre" : "KYOGRE" ,
93
94
"Rayquaza" : "RAYQUAZA" ,
100
101
"Deoxys" : "DEOXYS" ,
101
102
"Ho-Oh" : "HO_OH" ,
102
103
"Lugia" : "LUGIA" ,
103
- }
104
+ }. items ()}
104
105
105
106
DEFEATED_LEGENDARY_FLAG_MAP = {data .constants [f"FLAG_DEFEATED_{ name } " ]: name for name in LEGENDARY_NAMES .values ()}
106
107
CAUGHT_LEGENDARY_FLAG_MAP = {data .constants [f"FLAG_CAUGHT_{ name } " ]: name for name in LEGENDARY_NAMES .values ()}
@@ -311,7 +312,7 @@ async def game_watcher(self, ctx: "BizHawkClientContext") -> None:
311
312
312
313
num_caught = 0
313
314
for legendary , is_caught in caught_legendaries .items ():
314
- if is_caught and legendary in [LEGENDARY_NAMES [name ] for name in ctx .slot_data ["allowed_legendary_hunt_encounters" ]]:
315
+ if is_caught and legendary in [LEGENDARY_NAMES [name . lower () ] for name in ctx .slot_data ["allowed_legendary_hunt_encounters" ]]:
315
316
num_caught += 1
316
317
317
318
if num_caught >= ctx .slot_data ["legendary_hunt_count" ]:
You can’t perform that action at this time.
0 commit comments