diff options
author | yenatch <yenatch@gmail.com> | 2015-07-21 02:04:38 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2015-07-21 02:04:38 -0400 |
commit | 0b5471f385d3cc66bb4ae7aa4191ce3af9f50cac (patch) | |
tree | 61cb1021673d8a9b7b1cdddc64d90053a8476e8b /macros/map.asm | |
parent | 006fc875971c92f2249f47b5fd120c5df76c6883 (diff) | |
parent | d5ddd9e54ec2422d6f1cd7c561c1750512d0a81d (diff) |
Merge pull request #302 from PikalaxALT/more_enum
More enum
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 |