Identify more bit flags (#1153)
This commit is contained in:
@@ -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:
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user