diff options
Diffstat (limited to 'items/item_effects.asm')
-rw-r--r-- | items/item_effects.asm | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/items/item_effects.asm b/items/item_effects.asm index ea0c99881..bea79d359 100644 --- a/items/item_effects.asm +++ b/items/item_effects.asm @@ -4,7 +4,7 @@ _DoItemEffect:: ; e722 call GetItemName call CopyName1 ld a, 1 - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a ld a, [CurItem] dec a ld hl, ItemEffects @@ -39,7 +39,7 @@ ItemEffects: ; e73c dw Thunderstone dw WaterStone dw Item19 - dw HpUp + dw HPUp dw Protein dw Iron dw Carbos @@ -75,7 +75,7 @@ ItemEffects: ; e73c dw GoodRod dw SilverLeaf dw SuperRod - dw PpUp + dw PPUp dw Ether dw MaxEther dw Elixer @@ -1206,7 +1206,7 @@ SunStone: ; ee0f jr z, .NoEffect ld a, $1 - ld [wd1e9], a + ld [wForceEvolution], a callba EvolvePokemon ld a, [wMonTriedToEvolve] @@ -1220,12 +1220,12 @@ SunStone: ; ee0f .DecidedNotToUse xor a - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a ret ; ee3d -HpUp: +HPUp: Protein: Iron: Carbos: @@ -1293,7 +1293,7 @@ UpdateStatsAfterItem: ; ee8c RareCandy_StatBooster_ExitMenu: ; ee9f xor a - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a jp ClearPalettes ; eea6 @@ -1447,7 +1447,7 @@ RareCandy: ; ef14 predef LearnLevelMoves xor a - ld [wd1e9], a + ld [wForceEvolution], a callba EvolvePokemon jp UseDisposableItem @@ -1930,7 +1930,7 @@ StatusHealer_NoEffect: ; f299 (3:7299) StatusHealer_ExitMenu: ; f29e (3:729e) xor a - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a StatusHealer_ClearPalettes: ; f2a2 (3:72a2) call ClearPalettes ret @@ -2233,10 +2233,10 @@ Softboiled_MilkDrinkFunction: ; f3df (3:73df) EscapeRope: ; f44f xor a - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a callba EscapeRopeFunction - ld a, [wPlayerAction] + ld a, [wItemEffectSucceeded] cp 1 call z, UseDisposableItem ret @@ -2298,7 +2298,7 @@ PokeDoll: ; f48f .asm_f4a6 xor a - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a ret ; f4ab @@ -2512,7 +2512,7 @@ Itemfinder: ; f5b8 MaxElixer: -PpUp: +PPUp: Ether: MaxEther: Elixer: @@ -2667,7 +2667,7 @@ Not_PP_Up: ; f6a7 Elixer_RestorePPofAllMoves: ; f6af xor a - ld hl, MenuSelection2 + ld hl, wMenuCursorY ld [hli], a ld [hl], a ld b, NUM_MOVES @@ -2682,16 +2682,16 @@ Elixer_RestorePPofAllMoves: ; f6af call RestorePP jr z, .next - ld hl, wcfaa + ld hl, wMenuCursorX inc [hl] .next - ld hl, MenuSelection2 + ld hl, wMenuCursorY inc [hl] pop bc dec b jr nz, .moveLoop - ld a, [wcfaa] + ld a, [wMenuCursorX] and a jp nz, BattleRestorePP @@ -2701,7 +2701,7 @@ PPRestoreItem_NoEffect: ; f6dd PPRestoreItem_Cancel: ; f6e0 call ClearPalettes xor a - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a ret ; f6e8 @@ -2802,7 +2802,7 @@ BasementKey: ; f74c SacredAsh: ; f753 callba _SacredAsh - ld a, [wPlayerAction] + ld a, [wItemEffectSucceeded] cp $1 ret nz call UseDisposableItem @@ -2973,7 +2973,7 @@ WontHaveAnyEffect_NotUsedMessage: ; f7ca ; Item wasn't used. ld a, $2 - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a ret ; f7d6 @@ -2988,7 +2988,7 @@ Ball_BoxIsFullMessage: ; f7dc ; Item wasn't used. ld a, $2 - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a ret ; f7e8 @@ -3018,7 +3018,7 @@ CantGetOnYourBikeMessage: ; f801 CantUseItemMessage: ; f804 ; Item couldn't be used. xor a - ld [wPlayerAction], a + ld [wItemEffectSucceeded], a jp PrintText ; f80b @@ -3120,7 +3120,7 @@ ApplyPPUp: ; f84c ld a, [wd265] dec a jr nz, .use - ld a, [MenuSelection2] + ld a, [wMenuCursorY] inc a cp b jr nz, .skip @@ -3197,7 +3197,7 @@ RestoreAllPP: ; f8b9 call GetPartyParamLocation pop de xor a ; PARTYMON - ld [MenuSelection2], a + ld [wMenuCursorY], a ld [MonType], a ld c, NUM_MOVES .loop @@ -3217,7 +3217,7 @@ RestoreAllPP: ; f8b9 add b ld [de], a inc de - ld hl, MenuSelection2 + ld hl, wMenuCursorY inc [hl] pop hl dec c @@ -3310,7 +3310,7 @@ GetMthMoveOfNthPartymon: ; f963 call AddNTimes GetMthMoveOfCurrentMon: ; f969 - ld a, [MenuSelection2] + ld a, [wMenuCursorY] ld c, a ld b, 0 add hl, bc |