mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Pokemon Emerald: Change dexsanity to not create locations for blacklisted wilds (#3056)
This commit is contained in:
@@ -1531,6 +1531,10 @@ def set_rules(world: "PokemonEmeraldWorld") -> None:
|
||||
if world.options.dexsanity:
|
||||
for i in range(NUM_REAL_SPECIES):
|
||||
species = data.species[NATIONAL_ID_TO_SPECIES_ID[i + 1]]
|
||||
|
||||
if species.species_id in world.blacklisted_wilds:
|
||||
continue
|
||||
|
||||
set_rule(
|
||||
get_location(f"Pokedex - {species.label}"),
|
||||
lambda state, species_name=species.name: state.has(f"CATCH_{species_name}", world.player)
|
||||
@@ -1538,7 +1542,8 @@ def set_rules(world: "PokemonEmeraldWorld") -> None:
|
||||
|
||||
# Legendary hunt prevents Latios from being a wild spawn so the roamer
|
||||
# can be tracked, and also guarantees that the roamer is a Latios.
|
||||
if world.options.goal == Goal.option_legendary_hunt:
|
||||
if world.options.goal == Goal.option_legendary_hunt and \
|
||||
data.constants["SPECIES_LATIOS"] not in world.blacklisted_wilds:
|
||||
set_rule(
|
||||
get_location(f"Pokedex - Latios"),
|
||||
lambda state: state.has("EVENT_ENCOUNTER_LATIOS", world.player)
|
||||
|
Reference in New Issue
Block a user