summaryrefslogtreecommitdiff
path: root/engine/items
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-02-13 19:48:34 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2021-02-13 19:48:34 -0500
commit95353fdefa95440eba012509722f2058739d45fe (patch)
tree224e69bcaafc7427f407bc9678e7bf2e8784cb51 /engine/items
parent83f7d224c8c784deccc0b9ea49c833899efe0197 (diff)
Identify hUILayoutFlags
Diffstat (limited to 'engine/items')
-rw-r--r--engine/items/item_effects.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm
index d4164332..804a316d 100644
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -1051,15 +1051,15 @@ ItemUseMedicine:
call AddNTimes ; calculate coordinates of HP bar of pokemon that used Softboiled
ld a, SFX_HEAL_HP
call PlaySoundWaitForCurrent
- ldh a, [hFlagsFFF6]
+ ldh a, [hUILayoutFlags]
set 0, a
- ldh [hFlagsFFF6], a
+ ldh [hUILayoutFlags], a
ld a, $02
ld [wHPBarType], a
predef UpdateHPBar2 ; animate HP bar decrease of pokemon that used Softboiled
- ldh a, [hFlagsFFF6]
+ ldh a, [hUILayoutFlags]
res 0, a
- ldh [hFlagsFFF6], a
+ ldh [hUILayoutFlags], a
pop af
ld b, a ; store heal amount (1/5 of max HP)
ld hl, wHPBarOldHP + 1
@@ -1201,15 +1201,15 @@ ItemUseMedicine:
jr z, .playStatusAilmentCuringSound
ld a, SFX_HEAL_HP
call PlaySoundWaitForCurrent
- ldh a, [hFlagsFFF6]
+ ldh a, [hUILayoutFlags]
set 0, a
- ldh [hFlagsFFF6], a
+ ldh [hUILayoutFlags], a
ld a, $02
ld [wHPBarType], a
predef UpdateHPBar2 ; animate the HP bar lengthening
- ldh a, [hFlagsFFF6]
+ ldh a, [hUILayoutFlags]
res 0, a
- ldh [hFlagsFFF6], a
+ ldh [hUILayoutFlags], a
ld a, REVIVE_MSG
ld [wPartyMenuTypeOrMessageID], a
ld a, [wcf91]