mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Unlocked level flags
This commit is contained in:
parent
daf9e41557
commit
d7c59dcef1
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -177,6 +177,7 @@ PrintText1bpp::
|
|||||||
PrintText2bpp::
|
PrintText2bpp::
|
||||||
push hl
|
push hl
|
||||||
call SpeechTextbox2bpp
|
call SpeechTextbox2bpp
|
||||||
|
; fallthrough
|
||||||
|
|
||||||
_PrintText:
|
_PrintText:
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user