diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-04-27 12:30:04 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-04-27 12:30:04 -0400 |
commit | 2a9ae6ecefe12e798c15e7a37a77005f5373aa9d (patch) | |
tree | 130d959ec25729831aad44d2e741b82af5dcf429 /constants | |
parent | 5f2d61034527ffd2c36eaa4d4079e9948dc809b4 (diff) |
Use {interpolation} to generate sequences of RAM labels
This makes the table_width/assert_table_length usages unnecessary, and also keeps the labels automatically up to date if the length constants change.
Diffstat (limited to 'constants')
-rw-r--r-- | constants/pokemon_data_constants.asm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/constants/pokemon_data_constants.asm b/constants/pokemon_data_constants.asm index 171068e7..12670215 100644 --- a/constants/pokemon_data_constants.asm +++ b/constants/pokemon_data_constants.asm @@ -116,12 +116,16 @@ PARTY_LENGTH EQU 6 ; boxes MONS_PER_BOX EQU 20 +; box: count, species, mons, OTs, nicknames, padding +BOX_LENGTH EQU 1 + MONS_PER_BOX + 1 + (BOXMON_STRUCT_LENGTH + NAME_LENGTH + MON_NAME_LENGTH) * MONS_PER_BOX + 2 ; $450 NUM_BOXES EQU 14 NUM_BOXES_JAPANESE EQU 9 ; hall of fame -HOF_MON_LENGTH EQU 1 + 2 + 2 + 1 + (MON_NAME_LENGTH - 1) ; species, id, dvs, level, nick -HOF_LENGTH EQU 1 + HOF_MON_LENGTH * PARTY_LENGTH + 1 ; win count, party, terminator +; hof_mon: species, id, dvs, level, nicknames +HOF_MON_LENGTH EQU 1 + 2 + 2 + 1 + (MON_NAME_LENGTH - 1) ; $10 +; hall_of_fame: win count, party, terminator +HOF_LENGTH EQU 1 + HOF_MON_LENGTH * PARTY_LENGTH + 1 ; $62 NUM_HOF_TEAMS EQU 30 ; evolution types (used in data/pokemon/evos_attacks.asm) |