aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2025-12-15 15:16:40 -0500
committerGitHub <noreply@github.com>2025-12-15 15:16:40 -0500
commitd79c578abd993f7eee4e85462a8cd5b7c4e14646 (patch)
treedd89e07a471a12cd6eb731bf559d73940c07b444 /data
parentComment more unreferenced local labels (#550) (diff)
downloadpokeyellow-d79c578abd993f7eee4e85462a8cd5b7c4e14646.tar.gz
pokeyellow-d79c578abd993f7eee4e85462a8cd5b7c4e14646.tar.xz
pokeyellow-d79c578abd993f7eee4e85462a8cd5b7c4e14646.zip
Specify a max item length for `list_start` (#552)
Diffstat (limited to 'data')
-rw-r--r--data/battle/stat_mod_names.asm2
-rw-r--r--data/battle/stat_names.asm2
-rw-r--r--data/items/names.asm2
-rw-r--r--data/moves/names.asm3
-rw-r--r--data/player/names_list.asm4
-rw-r--r--data/trainers/move_choices.asm8
-rw-r--r--data/trainers/names.asm2
7 files changed, 13 insertions, 10 deletions
diff --git a/data/battle/stat_mod_names.asm b/data/battle/stat_mod_names.asm
index 63c956d7..6c68db4e 100644
--- a/data/battle/stat_mod_names.asm
+++ b/data/battle/stat_mod_names.asm
@@ -2,7 +2,7 @@
; The relevant move effect IDs correspond to the stats
StatModTextStrings:
- list_start
+ list_start STAT_NAME_LENGTH - 1
li "ATTACK"
li "DEFENSE"
li "SPEED"
diff --git a/data/battle/stat_names.asm b/data/battle/stat_names.asm
index 30401a99..08685e83 100644
--- a/data/battle/stat_names.asm
+++ b/data/battle/stat_names.asm
@@ -1,7 +1,7 @@
; Stats that vitamins can raise or lower
VitaminStats:
- list_start
+ list_start STAT_NAME_LENGTH - 1
li "HEALTH"
li "ATTACK"
li "DEFENSE"
diff --git a/data/items/names.asm b/data/items/names.asm
index bab26efc..f5c0f27e 100644
--- a/data/items/names.asm
+++ b/data/items/names.asm
@@ -1,5 +1,5 @@
ItemNames::
- list_start
+ list_start ITEM_NAME_LENGTH - 1
li "MASTER BALL"
li "ULTRA BALL"
li "GREAT BALL"
diff --git a/data/moves/names.asm b/data/moves/names.asm
index 025172d5..caecc06c 100644
--- a/data/moves/names.asm
+++ b/data/moves/names.asm
@@ -1,5 +1,6 @@
MoveNames::
- list_start
+ ; in-battle "used <move name>!" text can only fit 12 (MOVE_NAME_LENGTH - 2) characters
+ list_start MOVE_NAME_LENGTH - 2
li "POUND"
li "KARATE CHOP"
li "DOUBLESLAP"
diff --git a/data/player/names_list.asm b/data/player/names_list.asm
index 786c1229..44f3c7f1 100644
--- a/data/player/names_list.asm
+++ b/data/player/names_list.asm
@@ -2,7 +2,7 @@
DefaultNamesPlayerList:
db "NEW NAME@"
- list_start
+ list_start PLAYER_NAME_LENGTH - 1
FOR n, 1, NUM_PLAYER_NAMES + 1
li #PLAYERNAME{d:n}
ENDR
@@ -10,7 +10,7 @@ ENDR
DefaultNamesRivalList:
db "NEW NAME@"
- list_start
+ list_start PLAYER_NAME_LENGTH - 1
FOR n, 1, NUM_PLAYER_NAMES + 1
li #RIVALNAME{d:n}
ENDR
diff --git a/data/trainers/move_choices.asm b/data/trainers/move_choices.asm
index 1624b326..98c068a1 100644
--- a/data/trainers/move_choices.asm
+++ b/data/trainers/move_choices.asm
@@ -1,14 +1,15 @@
+DEF __move_choices__ = 0
+
MACRO move_choices
IF _NARG
db \# ; all args
ENDC
db 0 ; end
- DEF list_index += 1
+ DEF __move_choices__ += 1
ENDM
; move choice modification methods that are applied for each trainer class
TrainerClassMoveChoiceModifications:
- list_start
move_choices ; YOUNGSTER
move_choices 1 ; BUG CATCHER
move_choices 1 ; LASS
@@ -56,4 +57,5 @@ TrainerClassMoveChoiceModifications:
move_choices 1 ; CHANNELER
move_choices 1 ; AGATHA
move_choices 1, 3 ; LANCE
- assert_list_length NUM_TRAINERS
+ assert __move_choices__ == NUM_TRAINERS, \
+ "TrainerClassMoveChoiceModifications: expected {d:NUM_TRAINERS} entries, got {d:__move_choices__}"
diff --git a/data/trainers/names.asm b/data/trainers/names.asm
index d7c5677c..1b6f2382 100644
--- a/data/trainers/names.asm
+++ b/data/trainers/names.asm
@@ -1,5 +1,5 @@
TrainerNames::
- list_start
+ list_start TRAINER_NAME_LENGTH - 1
li "YOUNGSTER"
li "BUG CATCHER"
li "LASS"