From 6e3ab0a9e97ff14123ac65f56cb4b4ddab45b695 Mon Sep 17 00:00:00 2001 From: Sylvie <35663410+Rangi42@users.noreply.github.com> Date: Wed, 24 Jul 2024 12:21:59 -0400 Subject: Identify wcd6d as wNameBuffer and others (#455) --- engine/events/cinnabar_lab.asm | 2 +- engine/events/heal_party.asm | 4 ++-- engine/events/in_game_trades.asm | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/events') diff --git a/engine/events/cinnabar_lab.asm b/engine/events/cinnabar_lab.asm index eb82a5b1..171fa99a 100644 --- a/engine/events/cinnabar_lab.asm +++ b/engine/events/cinnabar_lab.asm @@ -104,7 +104,7 @@ PrintFossilsInBag: ldh a, [hItemCounter] ld bc, SCREEN_WIDTH * 2 call AddNTimes - ld de, wcd6d + ld de, wNameBuffer call PlaceString ld hl, hItemCounter inc [hl] diff --git a/engine/events/heal_party.asm b/engine/events/heal_party.asm index b26bc90f..0c6ec1ea 100644 --- a/engine/events/heal_party.asm +++ b/engine/events/heal_party.asm @@ -37,10 +37,10 @@ HealParty: ld hl, Moves ld bc, MOVE_LENGTH call AddNTimes - ld de, wcd6d + ld de, wMoveData ld a, BANK(Moves) call FarCopyData - ld a, [wcd6d + 5] ; PP is byte 5 of move data + ld a, [wMoveData + MOVE_PP] pop bc pop de diff --git a/engine/events/in_game_trades.asm b/engine/events/in_game_trades.asm index 54588e7d..c62225ba 100644 --- a/engine/events/in_game_trades.asm +++ b/engine/events/in_game_trades.asm @@ -79,7 +79,7 @@ InGameTrade_GetMonName: push de ld [wd11e], a call GetMonName - ld hl, wcd6d + ld hl, wNameBuffer pop de ld bc, NAME_LENGTH jp CopyData -- cgit v1.3.1-sl0p