From 93578c2ffd08f4917badc1be42d8d683e2ca0634 Mon Sep 17 00:00:00 2001 From: entrpntr Date: Wed, 25 Mar 2020 16:10:23 -0400 Subject: Update hram and engine/gfx/load_pics before continuing. --- engine/items/item_effects.asm | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'engine/items') diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm index 274b8468..42e93894 100755 --- a/engine/items/item_effects.asm +++ b/engine/items/item_effects.asm @@ -261,7 +261,7 @@ UltraBall: ; e926 ld a, b jp z, .skip_hp_calc ld a, b - ldh [hPrintNum4], a + ldh [hMultiplicand + 2], a ld hl, wEnemyMonHP ld b, [hl] inc hl @@ -319,7 +319,7 @@ UltraBall: ; e926 ld b, $4 call Divide - ldh a, [hQuotient + 2] + ldh a, [hQuotient + 3] and a jr nz, .statuscheck ld a, 1 @@ -1166,12 +1166,14 @@ RareCandy: ; ef68 (3:6f68) pop de ld a, $8 call GetPartyParamLocation - ldh a, [hQuotient] + + ldh a, [hMultiplicand + 0] ld [hli], a - ldh a, [hPrintNum3] + ldh a, [hMultiplicand + 1] ld [hli], a - ldh a, [hPrintNum4] + ldh a, [hMultiplicand + 2] ld [hl], a + ld a, $24 call GetPartyParamLocation ld a, [hli] @@ -1813,9 +1815,9 @@ GetOneFifthMaxHP: ; f3ce (3:73ce) ldh [hDivisor], a ld b, 2 call Divide - ldh a, [hQuotient + 1] - ld d, a ldh a, [hQuotient + 2] + ld d, a + ldh a, [hQuotient + 3] ld e, a pop bc ret @@ -2704,7 +2706,7 @@ Functionf8c8: ; f8c8 (3:78c8) and a jr z, .asm_f8fd .asm_f8ea - ldh a, [hPrintNum4] + ldh a, [hQuotient + 3] cp $8 jr c, .asm_f8f2 ld a, $7 -- cgit v1.2.3