2020-07-04 05:00:45 +00:00
|
|
|
; Used in wram.asm
|
|
|
|
|
2022-06-06 21:25:31 +00:00
|
|
|
MACRO flag_array
|
2020-07-04 05:00:45 +00:00
|
|
|
ds ((\1) + 7) / 8
|
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:31 +00:00
|
|
|
DEF BOX_STRUCT_LENGTH EQU 25 + NUM_MOVES * 2
|
2020-07-04 05:00:45 +00:00
|
|
|
|
2022-06-06 21:25:31 +00:00
|
|
|
MACRO box_struct
|
2020-07-04 05:00:45 +00:00
|
|
|
\1Species:: db
|
|
|
|
\1HP:: dw
|
|
|
|
\1BoxLevel:: db
|
|
|
|
\1Status:: db
|
|
|
|
\1Type::
|
|
|
|
\1Type1:: db
|
|
|
|
\1Type2:: db
|
|
|
|
\1CatchRate:: db
|
|
|
|
\1Moves:: ds NUM_MOVES
|
|
|
|
\1OTID:: dw
|
|
|
|
\1Exp:: ds 3
|
|
|
|
\1HPExp:: dw
|
|
|
|
\1AttackExp:: dw
|
|
|
|
\1DefenseExp:: dw
|
|
|
|
\1SpeedExp:: dw
|
|
|
|
\1SpecialExp:: dw
|
2023-11-22 15:12:40 +00:00
|
|
|
\1DVs:: dw
|
2020-07-04 05:00:45 +00:00
|
|
|
\1PP:: ds NUM_MOVES
|
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:31 +00:00
|
|
|
MACRO party_struct
|
2020-07-04 05:00:45 +00:00
|
|
|
box_struct \1
|
|
|
|
\1Level:: db
|
|
|
|
\1Stats::
|
|
|
|
\1MaxHP:: dw
|
|
|
|
\1Attack:: dw
|
|
|
|
\1Defense:: dw
|
|
|
|
\1Speed:: dw
|
|
|
|
\1Special:: dw
|
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:31 +00:00
|
|
|
MACRO battle_struct
|
2020-07-04 05:00:45 +00:00
|
|
|
\1Species:: db
|
|
|
|
\1HP:: dw
|
|
|
|
\1PartyPos::
|
|
|
|
\1BoxLevel:: db
|
|
|
|
\1Status:: db
|
|
|
|
\1Type::
|
|
|
|
\1Type1:: db
|
|
|
|
\1Type2:: db
|
|
|
|
\1CatchRate:: db
|
|
|
|
\1Moves:: ds NUM_MOVES
|
2023-11-22 15:12:40 +00:00
|
|
|
\1DVs:: dw
|
2020-07-04 05:00:45 +00:00
|
|
|
\1Level:: db
|
|
|
|
\1Stats::
|
|
|
|
\1MaxHP:: dw
|
|
|
|
\1Attack:: dw
|
|
|
|
\1Defense:: dw
|
|
|
|
\1Speed:: dw
|
|
|
|
\1Special:: dw
|
|
|
|
\1PP:: ds NUM_MOVES
|
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:31 +00:00
|
|
|
MACRO spritestatedata1
|
2021-05-31 15:46:10 +00:00
|
|
|
\1PictureID:: db
|
|
|
|
\1MovementStatus:: db
|
|
|
|
\1ImageIndex:: db
|
|
|
|
\1YStepVector:: db
|
|
|
|
\1YPixels:: db
|
|
|
|
\1XStepVector:: db
|
|
|
|
\1XPixels:: db
|
2020-07-04 05:00:45 +00:00
|
|
|
\1IntraAnimFrameCounter:: db
|
2021-05-31 15:46:10 +00:00
|
|
|
\1AnimFrameCounter:: db
|
|
|
|
\1FacingDirection:: db
|
|
|
|
\1YAdjusted:: db
|
|
|
|
\1XAdjusted:: db
|
|
|
|
\1CollisionData:: db
|
2020-07-05 21:29:11 +00:00
|
|
|
ds 3
|
2020-07-04 05:00:45 +00:00
|
|
|
\1End::
|
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:31 +00:00
|
|
|
MACRO spritestatedata2
|
2020-07-04 05:00:45 +00:00
|
|
|
\1WalkAnimationCounter:: db
|
|
|
|
ds 1
|
2021-05-31 15:46:10 +00:00
|
|
|
\1YDisplacement:: db
|
|
|
|
\1XDisplacement:: db
|
|
|
|
\1MapY:: db
|
|
|
|
\1MapX:: db
|
|
|
|
\1MovementByte1:: db
|
|
|
|
\1GrassPriority:: db
|
|
|
|
\1MovementDelay:: db
|
|
|
|
\1OrigFacingDirection:: db
|
2020-07-07 20:57:51 +00:00
|
|
|
ds 3
|
2021-05-31 15:46:10 +00:00
|
|
|
\1PictureID:: db
|
|
|
|
\1ImageBaseOffset:: db
|
2020-07-04 05:00:45 +00:00
|
|
|
ds 1
|
|
|
|
\1End::
|
|
|
|
ENDM
|
2021-05-31 15:46:10 +00:00
|
|
|
|
2022-06-06 21:25:31 +00:00
|
|
|
MACRO sprite_oam_struct
|
2021-05-31 15:46:10 +00:00
|
|
|
\1YCoord:: db
|
|
|
|
\1XCoord:: db
|
|
|
|
\1TileID:: db
|
|
|
|
\1Attributes:: db
|
|
|
|
ENDM
|
2021-05-31 20:25:16 +00:00
|
|
|
|
2022-06-06 21:25:31 +00:00
|
|
|
MACRO map_connection_struct
|
2021-05-31 20:25:16 +00:00
|
|
|
\1ConnectedMap:: db
|
|
|
|
\1ConnectionStripSrc:: dw
|
|
|
|
\1ConnectionStripDest:: dw
|
|
|
|
\1ConnectionStripLength:: db
|
|
|
|
\1ConnectedMapWidth:: db
|
|
|
|
\1ConnectedMapYAlignment:: db
|
|
|
|
\1ConnectedMapXAlignment:: db
|
|
|
|
\1ConnectedMapViewPointer:: dw
|
|
|
|
ENDM
|