Unlocked level flags

This commit is contained in:
xCrystal 2023-08-21 01:45:06 +02:00
parent daf9e41557
commit d7c59dcef1
4 changed files with 9 additions and 3 deletions

View File

@ -7,7 +7,7 @@ DEF NUM_STAT_PAGES EQU const_value - 1
DEF STAT_PAGE_MASK EQU %00000011 DEF STAT_PAGE_MASK EQU %00000011
BattleStatsScreenInit: BattleStatsScreenInit:
; fallthrough ; fallthrough
StatsScreenInit: StatsScreenInit:
ld hl, StatsScreenMain ld hl, StatsScreenMain

View File

@ -21,10 +21,13 @@ ResetFlashIfOutOfCave::
res STATUSFLAGS_FLASH_F, [hl] res STATUSFLAGS_FLASH_F, [hl]
ret ret
UnlockedLevelsFlagAction::
ld hl, wUnlockedLevels
jr FlagAction
EventFlagAction:: EventFlagAction::
ld hl, wEventFlags ld hl, wEventFlags
call FlagAction ; fallthrough
ret
FlagAction:: FlagAction::
; Perform action b on bit de in flag array hl. ; Perform action b on bit de in flag array hl.

View File

@ -177,6 +177,7 @@ PrintText1bpp::
PrintText2bpp:: PrintText2bpp::
push hl push hl
call SpeechTextbox2bpp call SpeechTextbox2bpp
; fallthrough
_PrintText: _PrintText:
call UpdateSprites call UpdateSprites

View File

@ -2376,6 +2376,8 @@ wMooMooBerries:: db
wUndergroundSwitchPositions:: db wUndergroundSwitchPositions:: db
wFarfetchdPosition:: db wFarfetchdPosition:: db
wUnlockedLevels:: flag_array NUM_LANDMARKS
; map scene ids (data/maps/scenes.asm:MapScenes) ; map scene ids (data/maps/scenes.asm:MapScenes)
; wPokecenter2FSceneID:: db ; wPokecenter2FSceneID:: db