diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-03 22:45:10 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-03 22:45:10 -0500 |
commit | 2b9c37e74f73af67d809b539daa26c612dfedeb0 (patch) | |
tree | 51593ace85d342c3cc349f3789c4424278994f14 /engine/items/item_effects.asm | |
parent | 5c143ed970c969832953699e80b1fcaab182c5a1 (diff) |
Identify some more uses of wBuffer1-6
Diffstat (limited to 'engine/items/item_effects.asm')
-rw-r--r-- | engine/items/item_effects.asm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm index 721819a7..d0f736ec 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 @@ -2685,12 +2685,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 |