Identify more bit flags (#1153)

This commit is contained in:
Sylvie
2024-11-29 19:29:30 -05:00
committed by GitHub
parent 8894e29da2
commit 644bd42fb0
78 changed files with 539 additions and 472 deletions

View File

@@ -1,6 +1,14 @@
MACRO add_mapsetup
\1_MapSetupCmd:
dba \1
; A second argument of TRUE indicates taking a parameter.
if _NARG < 2
dba \1
elif \2
db (1 << MAPSETUPSCRIPT_HAS_PARAM_F) | BANK(\1)
dw \1
else
dba \1
endc
ENDM
MapSetupCommands:

View File

@@ -18,6 +18,10 @@ MapSetupScripts:
; valid commands are listed in MapSetupCommands (see data/maps/setup_script_pointers.asm)
MACRO mapsetup
db (\1_MapSetupCmd - MapSetupCommands) / 3
; `mapsetup` takes a parameter if `add_mapsetup` indicates taking one.
if _NARG == 2
db \2 ; param
endc
ENDM
MapSetupScript_Teleport: