Skip to content

Commit

Permalink
Updated based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SansSkill committed Dec 11, 2024
1 parent d1cb5b6 commit a7d1a4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worlds/pokemon_emerald/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ def set_free_fly(world: "PokemonEmeraldWorld") -> None:
# If not enabled, set it to Littleroot Town by default
fly_location_name = "EVENT_VISITED_LITTLEROOT_TOWN"
if world.options.free_fly_location:
free_fly_locations = sorted(map(lambda city: BLACKLIST_OPTION_TO_VISITED_EVENT[city], world.options.free_fly_blacklist.value))
blacklisted_locations = set(BLACKLIST_OPTION_TO_VISITED_EVENT[city] for city in world.options.free_fly_blacklist.value)
free_fly_locations = sorted(set(BLACKLIST_OPTION_TO_VISITED_EVENT.values()) - blacklisted_locations)
if free_fly_locations:
fly_location_name = world.random.choice(free_fly_locations)

Expand Down

0 comments on commit a7d1a4f

Please sign in to comment.