summaryrefslogtreecommitdiff
path: root/asm/macros/map.inc
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2017-11-27 22:12:09 -0600
committercamthesaxman <cameronghall@cox.net>2017-11-27 22:12:09 -0600
commit2fea5bf7d82e85f4b33857e6eb5b4ddc6e7542d2 (patch)
tree37d8e53e88c1f6a052ca1a355faf36ba3acad9dc /asm/macros/map.inc
parent61e0c62d2d2dbeba13aaeb49b89c9773b25f84b7 (diff)
convert data files to use constants/map.h
Diffstat (limited to 'asm/macros/map.inc')
-rw-r--r--asm/macros/map.inc35
1 files changed, 8 insertions, 27 deletions
diff --git a/asm/macros/map.inc b/asm/macros/map.inc
index fd417fe9d..5bce7a456 100644
--- a/asm/macros/map.inc
+++ b/asm/macros/map.inc
@@ -1,30 +1,11 @@
- .macro new_map_group
- inc cur_map_group
- .set cur_map_num, 0
+ .macro map map_id
+ .byte \map_id >> 8 @ map group
+ .byte \map_id & 0xFF @ map num
.endm
- .macro map_group map_name
- .set GROUP_\map_name, cur_map_group
- .set MAP_\map_name, cur_map_num
- inc cur_map_num
- .endm
-
- .macro map map_name
- .byte GROUP_\map_name
- .byte MAP_\map_name
- .endm
-
- .macro warp_map map_name
- .byte MAP_\map_name
- .byte GROUP_\map_name
- .endm
-
- .macro heal_location map_name, x, y
- .byte GROUP_\map_name
- .byte MAP_\map_name
- .2byte \x
- .2byte \y
- .space 2
+ .macro warp_map map_id
+ .byte \map_id & 0xFF @ map num
+ .byte \map_id >> 8 @ map group
.endm
.macro map_script type, address
@@ -48,10 +29,10 @@
inc _num_npcs
.endm
- .macro warp_def x, y, byte, warp, map
+ .macro warp_def x, y, byte, warp, map_id
.2byte \x, \y
.byte \byte, \warp
- warp_map \map
+ warp_map \map_id
inc _num_warps
.endm