diff options
| author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2025-12-15 15:16:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-15 15:16:40 -0500 |
| commit | d79c578abd993f7eee4e85462a8cd5b7c4e14646 (patch) | |
| tree | dd89e07a471a12cd6eb731bf559d73940c07b444 /engine | |
| parent | Comment more unreferenced local labels (#550) (diff) | |
| download | pokeyellow-d79c578abd993f7eee4e85462a8cd5b7c4e14646.tar.gz pokeyellow-d79c578abd993f7eee4e85462a8cd5b7c4e14646.tar.xz pokeyellow-d79c578abd993f7eee4e85462a8cd5b7c4e14646.zip | |
Specify a max item length for `list_start` (#552)
Diffstat (limited to 'engine')
| -rw-r--r-- | engine/battle/effects.asm | 2 | ||||
| -rw-r--r-- | engine/battle/get_trainer_name.asm | 2 | ||||
| -rw-r--r-- | engine/items/item_effects.asm | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/engine/battle/effects.asm b/engine/battle/effects.asm index 22765140..394e07e5 100644 --- a/engine/battle/effects.asm +++ b/engine/battle/effects.asm @@ -754,7 +754,7 @@ PrintStatText: jr .findStatName_inner .foundStatName ld de, wStringBuffer - ld bc, NAME_LENGTH - 1 ; all StatModTextStrings are at most 10 bytes + ld bc, STAT_NAME_LENGTH jp CopyData INCLUDE "data/battle/stat_mod_names.asm" diff --git a/engine/battle/get_trainer_name.asm b/engine/battle/get_trainer_name.asm index a0e869fc..1983b08a 100644 --- a/engine/battle/get_trainer_name.asm +++ b/engine/battle/get_trainer_name.asm @@ -20,5 +20,5 @@ GetTrainerName_:: ld hl, wNameBuffer .foundName ld de, wTrainerName - ld bc, ITEM_NAME_LENGTH + ld bc, TRAINER_NAME_LENGTH jp CopyData diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm index 12b5bd00..c4ce13de 100644 --- a/engine/items/item_effects.asm +++ b/engine/items/item_effects.asm @@ -1308,7 +1308,7 @@ ItemUseMedicine: jr .statNameLoop .gotStatName ld de, wStringBuffer - ld bc, NAME_LENGTH - 1 ; all VitaminStats are at most 10 bytes + ld bc, STAT_NAME_LENGTH call CopyData ; copy the stat's name to wStringBuffer ld a, SFX_HEAL_AILMENT call PlaySound |
