Skip to content

Commit

Permalink
Merge pull request #324 from hanzi/static-run-aways
Browse files Browse the repository at this point in the history
Disable Static Run Aways mode for R/S
  • Loading branch information
hanzi committed May 8, 2024
2 parents 49e2786 + 4509c15 commit 14b7bef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/modes/static_run_away.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def name() -> str:

@staticmethod
def is_selectable() -> bool:
if context.rom.is_rse:
if context.rom.is_emerald:
allowed_maps = [
MapRSE.NAVEL_ROCK_TOP,
MapRSE.NAVEL_ROCK_BOTTOM,
Expand All @@ -37,8 +37,10 @@ def is_selectable() -> bool:
MapRSE.SKY_PILLAR_TOP,
MapRSE.FARAWAY_ISLAND_ENTRANCE,
]
else:
elif context.rom.is_frlg:
allowed_maps = [MapFRLG.NAVEL_ROCK_BASE, MapFRLG.NAVEL_ROCK_SUMMIT]
else:
allowed_maps = []
return get_player_avatar().map_group_and_number in allowed_maps

def on_battle_started(self) -> BattleAction | None:
Expand Down

0 comments on commit 14b7bef

Please sign in to comment.