diff options
author | JimB16 <f1@jimb.de> | 2015-10-11 18:39:00 +0200 |
---|---|---|
committer | JimB16 <f1@jimb.de> | 2015-10-11 18:39:00 +0200 |
commit | 3ef626d37864f4dae26f115c26e448351f19da7c (patch) | |
tree | eeda72f917a8f28f84347e6fdf9b6d0072851ece | |
parent | 4b722eb53056e3d6e12e21ef41d5545af37a3025 (diff) |
added comments to the PPUP-function
-rw-r--r-- | items/item_effects.asm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/items/item_effects.asm b/items/item_effects.asm index edd520cb0..93030bd77 100644 --- a/items/item_effects.asm +++ b/items/item_effects.asm @@ -2521,6 +2521,7 @@ Mysteryberry: ; f5bf ld [wd002], a .asm_f5c5 + ; Party Screen opens to choose on which Pkmn to use the Item ld b, $1 call Functionf1f9 jp c, Functionf6e0 @@ -2548,8 +2549,8 @@ Mysteryberry: ; f5bf ld a, $2 ld [wd235], a callba MoveSelectionScreen - pop bc + ld a, b ld [CurMoveNum], a jr nz, .asm_f5c5 @@ -2562,8 +2563,8 @@ Mysteryberry: ; f5bf ld [wd265], a call GetMoveName call CopyName1 - pop hl + ld a, [wd002] cp PP_UP jp nz, Functionf6a7 @@ -2575,7 +2576,7 @@ Mysteryberry: ; f5bf ld bc, $0015 add hl, bc ld a, [hl] - cp $c0 + cp 3 << 6 ; have 3 PP Ups already been used? jr c, .increase_pp .pp_is_maxed_out @@ -2585,7 +2586,7 @@ Mysteryberry: ; f5bf .increase_pp ld a, [hl] - add $40 + add 1 << 6 ; increase PP Up count by 1 ld [hl], a ld a, $1 ld [wd265], a |