You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Require rgbds 0.5.1
Use some new features: \<10> macro args, SECTION UNION, SIZEOF/STARTOF, and CHARLEN/CHARSUB
This commit is contained in:
@@ -224,12 +224,7 @@ signpost: MACRO
|
||||
ENDM
|
||||
|
||||
person_event: MACRO
|
||||
_s = \1
|
||||
_y = \2
|
||||
_x = \3
|
||||
_m = \4
|
||||
shift 4
|
||||
object_event _x, _y, _s, _m, \1, \2, \3, \4, \5, \6, \7, \8, \9
|
||||
object_event \3, \2, \1, \4, \5, \6, \7, \8, \9, \<10>, \<11>, \<12>, \<13>
|
||||
ENDM
|
||||
|
||||
PERSONTYPE_SCRIPT EQUS "OBJECTTYPE_SCRIPT"
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user