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
BattleStatsScreenInit:
; fallthrough
; fallthrough
StatsScreenInit:
ld hl, StatsScreenMain

View File

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

View File

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

View File

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