diff options
Diffstat (limited to 'macros/map.asm')
-rw-r--r-- | macros/map.asm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/macros/map.asm b/macros/map.asm index 2ab981823..17b1f5a65 100644 --- a/macros/map.asm +++ b/macros/map.asm @@ -67,7 +67,7 @@ warp_def: macro map_header: MACRO - ; label, tileset, permission, location, music, time of day, fishing group + ; label, tileset, permission, location, music, phone service flag, time of day, fishing group \1_MapHeader: db BANK(\1_SecondMapHeader), \2, \3 dw \1_SecondMapHeader @@ -162,3 +162,18 @@ if "\1" == "east" endc ENDM + +mapgroup: MACRO +; map id, height, width +\1\@ EQUS "GROUP_\1" +\1\@2 EQUS "MAP_\1" +\1\@ EQU const_value + enum \1\@2 +\1_HEIGHT EQU \2 +\1_WIDTH EQU \3 +ENDM + +newgroup: MACRO +const_value = const_value + 1 + enum_start 1 +ENDM |