aboutsummaryrefslogtreecommitdiffstats
path: root/engine/items
diff options
context:
space:
mode:
authorYoann Fievez <yoann.fievez@gmail.com>2026-06-14 23:01:53 +0200
committerGitHub <noreply@github.com>2026-06-14 17:01:53 -0400
commit320b7c780a870b3923fe94793ca3a93d5eae00db (patch)
tree6db8af6882b90c39db4c1a7248f061294b835f2e /engine/items
parentDocument `UpdatePikachuHappinessAndMood` routine (#155) (diff)
downloadpokeyellow-320b7c780a870b3923fe94793ca3a93d5eae00db.tar.gz
pokeyellow-320b7c780a870b3923fe94793ca3a93d5eae00db.tar.xz
pokeyellow-320b7c780a870b3923fe94793ca3a93d5eae00db.zip
Rename wd49b to wPikachuEmotionModifier (#156)
This variable serves as an override for Pikachu's emotion following specific events like refusing a Thunder Stone. It is automatically cleared when its mood normalizes.
Diffstat (limited to 'engine/items')
-rw-r--r--engine/items/item_effects.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm
index 8efea6ae..a6bdf857 100644
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -562,7 +562,7 @@ ItemUseBall:
.skipShowingPokedexData
ld a, $1
- ld [wd49b], a
+ ld [wPikachuEmotionModifier], a
ld a, $85
ld [wPikachuMood], a
ld a, [wPartyCount]
@@ -819,7 +819,7 @@ ItemUseEvoStone:
ld hl, RefusingText
call PrintText
ld a, $4
- ld [wd49b], a
+ ld [wPikachuEmotionModifier], a
ld a, $82
ld [wPikachuMood], a
jr .canceledItemUse
@@ -2124,7 +2124,7 @@ FishingInit:
ld a, SFX_HEAL_AILMENT
call PlaySound
ld a, $2
- ld [wd49b], a
+ ld [wPikachuEmotionModifier], a
ld a, $81
ld [wPikachuMood], a
ld c, 80
@@ -2507,7 +2507,7 @@ ItemUseTMHM:
jr nz, .notTeachingThunderboltOrThunderToPikachu
.teachingThunderboltOrThunderToPlayerPikachu
ld a, $5
- ld [wd49b], a
+ ld [wPikachuEmotionModifier], a
ld a, $85
ld [wPikachuMood], a
.notTeachingThunderboltOrThunderToPikachu