summaryrefslogtreecommitdiff
path: root/constants/battle_tower_constants.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2021-04-27 12:11:39 -0400
committerGitHub <noreply@github.com>2021-04-27 12:11:39 -0400
commitefd1006917b438ff683e8f702adbe6b4d0733a0f (patch)
treef16f9860af61e855d90db4c9641af84034be4644 /constants/battle_tower_constants.asm
parentc5f9e25cc493ecc0e49ffd437dad73893b5529d0 (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/battle_tower_constants.asm')
-rw-r--r--constants/battle_tower_constants.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/constants/battle_tower_constants.asm b/constants/battle_tower_constants.asm
index 82d5bf448..844a38bbf 100644
--- a/constants/battle_tower_constants.asm
+++ b/constants/battle_tower_constants.asm
@@ -4,8 +4,8 @@ BATTLETOWER_STREAK_LENGTH EQU 7
BATTLETOWER_NUM_UNIQUE_MON EQU 21
BATTLETOWER_NUM_UNIQUE_TRAINERS EQU 70
-BATTLETOWER_TRAINERDATALENGTH EQU $24
-BATTLE_TOWER_STRUCT_LENGTH EQU NAME_LENGTH + BATTLETOWER_PARTY_LENGTH * NICKNAMED_MON_STRUCT_LENGTH + BATTLETOWER_TRAINERDATALENGTH
+BATTLETOWER_TRAINERDATALENGTH EQU 18 * 2 ; $24
+BATTLE_TOWER_STRUCT_LENGTH EQU NAME_LENGTH + BATTLETOWER_PARTY_LENGTH * NICKNAMED_MON_STRUCT_LENGTH + BATTLETOWER_TRAINERDATALENGTH ; $e0
; BattleTowerAction setval arguments (see engine/events/battle_tower/battle_tower.asm)
const_def