aboutsummaryrefslogtreecommitdiffstats
path: root/constants
diff options
context:
space:
mode:
Diffstat (limited to 'constants')
-rw-r--r--constants/pokemon_data_constants.asm31
-rw-r--r--constants/serial_constants.asm4
2 files changed, 35 insertions, 0 deletions
diff --git a/constants/pokemon_data_constants.asm b/constants/pokemon_data_constants.asm
index 430abfe0..1fd7ce19 100644
--- a/constants/pokemon_data_constants.asm
+++ b/constants/pokemon_data_constants.asm
@@ -23,6 +23,37 @@ DEF BASE_TMHM rb (NUM_TM_HM + 7) / 8
rb_skip
DEF BASE_DATA_SIZE EQU _RS
+; party_struct members (see macros/wram.asm)
+rsreset
+DEF MON_SPECIES rb
+DEF MON_HP rw
+DEF MON_BOX_LEVEL rb
+DEF MON_STATUS rb
+DEF MON_TYPE rw
+rsset MON_TYPE
+DEF MON_TYPE1 rb
+DEF MON_TYPE2 rb
+DEF MON_CATCH_RATE rb
+DEF MON_MOVES rb NUM_MOVES
+DEF MON_OTID rw
+DEF MON_EXP rb 3
+DEF MON_HP_EXP rw
+DEF MON_ATK_EXP rw
+DEF MON_DEF_EXP rw
+DEF MON_SPD_EXP rw
+DEF MON_SPC_EXP rw
+DEF MON_DVS rw
+DEF MON_PP rb NUM_MOVES
+DEF BOXMON_STRUCT_LENGTH EQU _RS
+DEF MON_LEVEL rb
+DEF MON_STATS rw NUM_STATS
+rsset MON_STATS
+DEF MON_MAXHP rw
+DEF MON_ATK rw
+DEF MON_DEF rw
+DEF MON_SPD rw
+DEF MON_SPC rw
+DEF PARTYMON_STRUCT_LENGTH EQU _RS
DEF PARTY_LENGTH EQU 6
diff --git a/constants/serial_constants.asm b/constants/serial_constants.asm
index 16603980..37747b76 100644
--- a/constants/serial_constants.asm
+++ b/constants/serial_constants.asm
@@ -14,6 +14,10 @@ DEF SERIAL_NO_DATA_BYTE EQU $FE
; signals the end of one part of a patch list (there are two parts) for player/enemy party data
DEF SERIAL_PATCH_LIST_PART_TERMINATOR EQU $FF
+DEF SERIAL_PREAMBLE_LENGTH EQU 6
+DEF SERIAL_RN_PREAMBLE_LENGTH EQU 7
+DEF SERIAL_RNS_LENGTH EQU 10
+
DEF LINK_STATE_NONE EQU $00 ; not using link
DEF LINK_STATE_IN_CABLE_CLUB EQU $01 ; in a cable club room (Colosseum or Trade Centre)
DEF LINK_STATE_START_TRADE EQU $02 ; pre-trade selection screen initialisation