aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events
diff options
context:
space:
mode:
authorSylvie <35663410+Rangi42@users.noreply.github.com>2024-09-18 21:41:58 -0400
committerGitHub <noreply@github.com>2024-09-18 21:41:58 -0400
commit5a622f628de6908210091a05956b0d8ce3620237 (patch)
tree9cc32420b50f09531c58f4c5019ef167e133b95c /engine/events
parentSplit `hSpriteIndexOrTextID` into `hSpriteIndex` and `hTextID` (#462) (diff)
downloadpokeyellow-5a622f628de6908210091a05956b0d8ce3620237.tar.gz
pokeyellow-5a622f628de6908210091a05956b0d8ce3620237.tar.xz
pokeyellow-5a622f628de6908210091a05956b0d8ce3620237.zip
Identify remaining uses of `wd0b5` and `wd11e` (#463)
Diffstat (limited to 'engine/events')
-rw-r--r--engine/events/cinnabar_lab.asm6
-rw-r--r--engine/events/display_pokedex.asm2
-rw-r--r--engine/events/give_pokemon.asm6
-rw-r--r--engine/events/heal_party.asm2
-rw-r--r--engine/events/hidden_items.asm2
-rw-r--r--engine/events/hidden_objects/museum_fossils.asm2
-rw-r--r--engine/events/in_game_trades.asm2
-rw-r--r--engine/events/poison.asm2
-rw-r--r--engine/events/pokemart.asm2
-rw-r--r--engine/events/prize_menu.asm20
10 files changed, 23 insertions, 23 deletions
diff --git a/engine/events/cinnabar_lab.asm b/engine/events/cinnabar_lab.asm
index 171fa99a..d8066fb8 100644
--- a/engine/events/cinnabar_lab.asm
+++ b/engine/events/cinnabar_lab.asm
@@ -98,7 +98,7 @@ PrintFossilsInBag:
cp $ff
ret z
push hl
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetItemName
hlcoord 2, 2
ldh a, [hItemCounter]
@@ -114,10 +114,10 @@ PrintFossilsInBag:
; loads the names of the fossil item and the resulting mon
LoadFossilItemAndMonName::
ld a, [wFossilMon]
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetMonName
call CopyToStringBuffer
ld a, [wFossilItem]
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetItemName
ret
diff --git a/engine/events/display_pokedex.asm b/engine/events/display_pokedex.asm
index 68d48bb3..46b45d77 100644
--- a/engine/events/display_pokedex.asm
+++ b/engine/events/display_pokedex.asm
@@ -8,7 +8,7 @@ _DisplayPokedex::
ld c, 10
call DelayFrames
predef IndexToPokedex
- ld a, [wd11e]
+ ld a, [wPokedexNum]
dec a
ld c, a
ld b, FLAG_SET
diff --git a/engine/events/give_pokemon.asm b/engine/events/give_pokemon.asm
index 9472f49f..9e80bdfc 100644
--- a/engine/events/give_pokemon.asm
+++ b/engine/events/give_pokemon.asm
@@ -54,16 +54,16 @@ _GivePokemon::
SetPokedexOwnedFlag:
ld a, [wCurPartySpecies]
push af
- ld [wd11e], a
+ ld [wPokedexNum], a
predef IndexToPokedex
- ld a, [wd11e]
+ ld a, [wPokedexNum]
dec a
ld c, a
ld hl, wPokedexOwned
ld b, FLAG_SET
predef FlagActionPredef
pop af
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetMonName
ld hl, GotMonText
jp PrintText
diff --git a/engine/events/heal_party.asm b/engine/events/heal_party.asm
index 0c6ec1ea..8bf162a7 100644
--- a/engine/events/heal_party.asm
+++ b/engine/events/heal_party.asm
@@ -84,7 +84,7 @@ HealParty:
.done
xor a
ld [wWhichPokemon], a
- ld [wd11e], a
+ ld [wUsingPPUp], a
ld a, [wPartyCount]
ld b, a
diff --git a/engine/events/hidden_items.asm b/engine/events/hidden_items.asm
index 97bb0b71..e42f60f9 100644
--- a/engine/events/hidden_items.asm
+++ b/engine/events/hidden_items.asm
@@ -14,7 +14,7 @@ HiddenItems:
ld a, 1
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
ld a, [wHiddenObjectFunctionArgument] ; item ID
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetItemName
tx_pre_jump FoundHiddenItemText
diff --git a/engine/events/hidden_objects/museum_fossils.asm b/engine/events/hidden_objects/museum_fossils.asm
index e996e471..df74293f 100644
--- a/engine/events/hidden_objects/museum_fossils.asm
+++ b/engine/events/hidden_objects/museum_fossils.asm
@@ -35,7 +35,7 @@ DisplayMonFrontSpriteInBox:
call DisplayTextBoxID
call UpdateSprites
ld a, [wCurPartySpecies]
- ld [wd0b5], a
+ ld [wCurSpecies], a
call GetMonHeader
ld de, vChars1 tile $31
call LoadMonFrontSprite
diff --git a/engine/events/in_game_trades.asm b/engine/events/in_game_trades.asm
index d3575689..ce4ffe3c 100644
--- a/engine/events/in_game_trades.asm
+++ b/engine/events/in_game_trades.asm
@@ -77,7 +77,7 @@ DoInGameTradeDialogue:
; copies name of species a to hl
InGameTrade_GetMonName:
push de
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetMonName
ld hl, wNameBuffer
pop de
diff --git a/engine/events/poison.asm b/engine/events/poison.asm
index 121bdc19..752899f7 100644
--- a/engine/events/poison.asm
+++ b/engine/events/poison.asm
@@ -44,7 +44,7 @@ ApplyOutOfBattlePoisonDamage:
inc hl
ld [hl], a
ld a, [de]
- ld [wd11e], a
+ ld [wPokedexNum], a
push de
ld a, [wWhichPokemon]
ld hl, wPartyMonNicks
diff --git a/engine/events/pokemart.asm b/engine/events/pokemart.asm
index 10b6dba2..b280c711 100644
--- a/engine/events/pokemart.asm
+++ b/engine/events/pokemart.asm
@@ -157,7 +157,7 @@ DisplayPokemartDialogue_::
inc a
jr z, .buyMenuLoop ; if the player closed the choose quantity menu with the B button
ld a, [wCurItem]
- ld [wd11e], a ; store item ID for GetItemName
+ ld [wNamedObjectIndex], a
call GetItemName
call CopyToStringBuffer
ld hl, PokemartTellBuyPriceText
diff --git a/engine/events/prize_menu.asm b/engine/events/prize_menu.asm
index f99cdaaa..816637bf 100644
--- a/engine/events/prize_menu.asm
+++ b/engine/events/prize_menu.asm
@@ -88,34 +88,34 @@ GetPrizeMenuId:
cp 2 ; is TM_menu?
jr nz, .putMonName
ld a, [wPrize1]
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetItemName
hlcoord 2, 4
call PlaceString
ld a, [wPrize2]
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetItemName
hlcoord 2, 6
call PlaceString
ld a, [wPrize3]
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetItemName
hlcoord 2, 8
call PlaceString
jr .putNoThanksText
.putMonName
ld a, [wPrize1]
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetMonName
hlcoord 2, 4
call PlaceString
ld a, [wPrize2]
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetMonName
hlcoord 2, 6
call PlaceString
ld a, [wPrize3]
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetMonName
hlcoord 2, 8
call PlaceString
@@ -189,7 +189,7 @@ HandlePrizeChoice:
ld hl, wPrize1
add hl, de
ld a, [hl]
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
ld a, [wWhichPrizeWindow]
cp 2 ; is prize a TM?
jr nz, .getMonName
@@ -208,9 +208,9 @@ HandlePrizeChoice:
call HasEnoughCoins
jr c, .notEnoughCoins
ld a, [wWhichPrizeWindow]
- cp $02
+ cp 2 ; is prize a TM?
jr nz, .giveMon
- ld a, [wd11e]
+ ld a, [wNamedObjectIndex]
ld b, a
ld a, 1
ld c, a
@@ -218,7 +218,7 @@ HandlePrizeChoice:
jr nc, .bagFull
jr .subtractCoins
.giveMon
- ld a, [wd11e]
+ ld a, [wNamedObjectIndex]
ld [wCurPartySpecies], a
push af
call GetPrizeMonLevel