ref: 3ef626d37864f4dae26f115c26e448351f19da7c
parent: 4b722eb53056e3d6e12e21ef41d5545af37a3025
author: JimB16 <f1@jimb.de>
date: Sun Oct 11 14:39:00 EDT 2015
added comments to the PPUP-function
--- a/items/item_effects.asm
+++ b/items/item_effects.asm
@@ -2521,6 +2521,7 @@
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 @@
ld a, $2
ld [wd235], a
callba MoveSelectionScreen
-
pop bc
+
ld a, b
ld [CurMoveNum], a
jr nz, .asm_f5c5
@@ -2562,8 +2563,8 @@
ld [wd265], a
call GetMoveName
call CopyName1
-
pop hl
+
ld a, [wd002]
cp PP_UP
jp nz, Functionf6a7
@@ -2575,7 +2576,7 @@
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 @@
.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