diff options
author | garak <garakmon@gmail.com> | 2019-05-13 21:21:01 -0400 |
---|---|---|
committer | garak <garakmon@gmail.com> | 2019-05-14 10:11:23 -0400 |
commit | 2e9d8a61e0882d6606e72185e830a4abc623c21d (patch) | |
tree | ef013b697bfc80b713b329d61d25236b23a195eb /asm/macros | |
parent | 55d66b51770b4f657ed55822e7e76f6d6e3261d8 (diff) |
clean some code in the map dump
Diffstat (limited to 'asm/macros')
-rw-r--r-- | asm/macros/map.inc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/asm/macros/map.inc b/asm/macros/map.inc index deea44a42..075993fd3 100644 --- a/asm/macros/map.inc +++ b/asm/macros/map.inc @@ -14,13 +14,15 @@ .4byte \address .endm - .macro object_event byte1, word1, byte2, byte3, byte4, byte5, byte6, byte7, byte8, byte9, byte10, byte11, byte12, byte13, byte14, script, word2, byte15, byte16 - .byte \byte1 - .2byte \word1 - .byte \byte2, \byte3, \byte4, \byte5, \byte6, \byte7, \byte8, \byte9, \byte10, \byte11, \byte12, \byte13, \byte14 + .macro object_event index:req, gfx:req, x:req, y:req, elevation:req, movement_type:req, x_radius:req, y_radius:req, trainer_type:req, sight_radius_tree_etc:req, script:req, event_flag:req + .byte \index + .2byte \gfx + .byte 0 + .2byte \x, \y + .byte \elevation, \movement_type, ((\y_radius << 4) | \x_radius), 0 + .2byte \trainer_type, \sight_radius_tree_etc .4byte \script - .2byte \word2 - .byte \byte15, \byte16 + .2byte \event_flag, 0 inc _num_npcs .endm |