Skip to content

Commit

Permalink
Merge branch 'main' into error-checking-in-write-file
Browse files Browse the repository at this point in the history
  • Loading branch information
40Cakes authored Dec 17, 2023
2 parents 6ae8465 + fae4bdc commit 1763191
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 110 deletions.
3 changes: 3 additions & 0 deletions modules/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class GameState(IntEnum):
GARBAGE_COLLECTION = auto()
EVOLUTION = auto()
UNKNOWN = auto()
QUEST_LOG = auto()


def get_game_state_symbol() -> str:
Expand All @@ -152,6 +153,8 @@ def get_game_state() -> GameState:
return state_cache.game_state.value

match get_game_state_symbol():
case "CB2_SETUPOVERWORLDFORQLPLAYBACKWITHWARPEXIT" | "CB2_SETUPOVERWORLDFORQLPLAYBACK" | "CB2_LOADMAPFORQLPLAYBACK" | "CB2_ENTERFIELDFROMQUESTLOG":
return GameState.QUEST_LOG
case "CB2_OVERWORLD":
result = GameState.OVERWORLD
case "BATTLEMAINCB2":
Expand Down
Loading

0 comments on commit 1763191

Please sign in to comment.