Johto Boy and HP Fix

Mildly scuffed implementation of blue checking your gender to be able to call you Johto Boy/Girl/Kid

Also fixed how fucking slow HP drain is when you have a lot. May require a make tidy to go into effect.
This commit is contained in:
Zeta_Null 2024-12-10 15:57:25 -05:00
parent 28b35d93f8
commit 7efbb642d5
2 changed files with 38 additions and 7 deletions

View file

@ -179,12 +179,12 @@ LongAnim_UpdateVariables:
ld c, a
ld a, [hli]
ld b, a
; BUG: HP bar animation is slow for high HP (see docs/bugs_and_glitches.md)
; BUG: HP bar animation is slow for high HP (see docs/bugs_and_glitches.md) - Fixed
call ComputeHPBarPixels
ld a, e
pop bc
pop de
pop hl
ld a, e
ld hl, wCurHPBarPixels
cp [hl]
jr z, .loop
@ -370,13 +370,14 @@ ShortHPBar_CalcPixelFrame:
ld b, 0
.loop
; BUG: HP bar animation off-by-one error for low HP (see docs/bugs_and_glitches.md)
; BUG: HP bar animation off-by-one error for low HP (see docs/bugs_and_glitches.md) - Fixed
ld a, l
sub HP_BAR_LENGTH_PX
ld l, a
ld a, h
sbc $0
ld h, a
jr z, .done
jr c, .done
inc b
jr .loop