diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-09 12:26:28 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-09 12:26:28 -0400 |
commit | b1dbadbdd397cb8c9e85fa48d9184949c921a8f3 (patch) | |
tree | a14477529739a4c5262cc5fbfa08a0ac4bb8122d /macros/scripts | |
parent | efd1006917b438ff683e8f702adbe6b4d0733a0f (diff) |
Require rgbds 0.5.1
Use some new features: \<10> macro args, SECTION UNION, SIZEOF/STARTOF, and CHARLEN/CHARSUB
Diffstat (limited to 'macros/scripts')
-rw-r--r-- | macros/scripts/maps.asm | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/macros/scripts/maps.asm b/macros/scripts/maps.asm index fc6d201b6..0e952c764 100644 --- a/macros/scripts/maps.asm +++ b/macros/scripts/maps.asm @@ -102,21 +102,16 @@ object_event: MACRO ; * if h1 == -1, h2 is treated as a time-of-day value: ; a combo of MORN, DAY, and/or NITE, or -1 to always appear ;\9: color: a PAL_NPC_* constant, or 0 for sprite default -;\10: function: a OBJECTTYPE_* constant -;\11: sight range: applies to OBJECTTYPE_TRAINER -;\12: script pointer -;\13: event flag: an EVENT_* constant, or -1 to always appear +;\<10>: function: a OBJECTTYPE_* constant +;\<11>: sight range: applies to OBJECTTYPE_TRAINER +;\<12>: script pointer +;\<13>: event flag: an EVENT_* constant, or -1 to always appear db \3, \2 + 4, \1 + 4, \4 dn \6, \5 db \7, \8 - shift - dn \8, \9 - shift - db \9 - shift - dw \9 - shift - dw \9 + dn \9, \<10> + db \<11> + dw \<12>, \<13> ; the dummy PlayerObjectTemplate object_event has no def_object_events if DEF(_NUM_OBJECT_EVENTS) {_NUM_OBJECT_EVENTS} = {_NUM_OBJECT_EVENTS} + 1 |