summaryrefslogtreecommitdiff
path: root/engine/items/item_effects.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-03 22:45:12 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-03 22:45:12 -0500
commit9f62d7911bdc0550d9ef1e66195ed22fb7f3ba1c (patch)
tree24087fc560eb8132e7cdf87fb1b39623d415fac4 /engine/items/item_effects.asm
parentc88c4a834094e91f1505eab0e22294963e1dd987 (diff)
Identify some more uses of wBuffer1-6
Diffstat (limited to 'engine/items/item_effects.asm')
-rw-r--r--engine/items/item_effects.asm20
1 files changed, 10 insertions, 10 deletions
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm
index f91332761..9763dfb24 100644
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -360,7 +360,7 @@ PokeBallEffect:
.skip_hp_calc
ld b, a
- ld [wBuffer1], a
+ ld [wFinalCatchRate], a
call Random
cp b
@@ -390,28 +390,28 @@ PokeBallEffect:
ld [wFXAnimID + 1], a
xor a
ldh [hBattleTurn], a
- ld [wBuffer2], a
+ ld [wThrownBallWobbleCount], a
ld [wNumHits], a
predef PlayBattleAnim
ld a, [wWildMon]
and a
jr nz, .caught
- ld a, [wBuffer2]
- cp $1
+ ld a, [wThrownBallWobbleCount]
+ cp 1
ld hl, BallBrokeFreeText
jp z, .shake_and_break_free
- cp $2
+ cp 2
ld hl, BallAppearedCaughtText
jp z, .shake_and_break_free
- cp $3
+ cp 3
ld hl, BallAlmostHadItText
jp z, .shake_and_break_free
- cp $4
+ cp 4
ld hl, BallSoCloseText
jp z, .shake_and_break_free
-.caught
+.caught
ld hl, wEnemyMonStatus
ld a, [hli]
push af
@@ -2723,12 +2723,12 @@ ApplyPPUp:
ld a, MON_MOVES
call GetPartyParamLocation
push hl
- ld de, wBuffer1
+ ld de, wPPUpPPBuffer
predef FillPP
pop hl
ld bc, MON_PP - MON_MOVES
add hl, bc
- ld de, wBuffer1
+ ld de, wPPUpPPBuffer
ld b, 0
.loop
inc b