2018-06-24 07:09:41 -07:00
|
|
|
_AnimateHPBar:
|
2016-03-01 19:31:21 -08:00
|
|
|
call .IsMaximumMoreThan48Pixels
|
|
|
|
jr c, .MoreThan48Pixels
|
|
|
|
call .ComputePixels
|
2016-04-10 11:42:14 -07:00
|
|
|
.ShortAnimLoop:
|
2015-12-14 08:12:18 -08:00
|
|
|
push bc
|
|
|
|
push hl
|
2016-03-08 16:54:06 -08:00
|
|
|
call ShortAnim_UpdateVariables
|
2015-12-14 08:12:18 -08:00
|
|
|
pop hl
|
|
|
|
pop bc
|
|
|
|
push af
|
|
|
|
push bc
|
|
|
|
push hl
|
2016-03-08 16:54:06 -08:00
|
|
|
call ShortHPBarAnim_UpdateTiles
|
|
|
|
call HPBarAnim_BGMapUpdate
|
2015-12-14 08:12:18 -08:00
|
|
|
pop hl
|
|
|
|
pop bc
|
|
|
|
pop af
|
2016-03-01 19:31:21 -08:00
|
|
|
jr nc, .ShortAnimLoop
|
2015-12-14 08:12:18 -08:00
|
|
|
ret
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.MoreThan48Pixels:
|
2016-03-01 19:31:21 -08:00
|
|
|
call .ComputePixels
|
2016-04-10 11:42:14 -07:00
|
|
|
.LongAnimLoop:
|
2015-12-14 08:12:18 -08:00
|
|
|
push bc
|
|
|
|
push hl
|
2016-03-08 16:54:06 -08:00
|
|
|
call LongAnim_UpdateVariables
|
2015-12-14 08:12:18 -08:00
|
|
|
pop hl
|
|
|
|
pop bc
|
|
|
|
ret c
|
|
|
|
push af
|
|
|
|
push bc
|
|
|
|
push hl
|
2016-03-08 16:54:06 -08:00
|
|
|
call LongHPBarAnim_UpdateTiles
|
|
|
|
call HPBarAnim_BGMapUpdate
|
2015-12-14 08:12:18 -08:00
|
|
|
pop hl
|
|
|
|
pop bc
|
|
|
|
pop af
|
2016-03-01 19:31:21 -08:00
|
|
|
jr nc, .LongAnimLoop
|
2015-12-14 08:12:18 -08:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
.IsMaximumMoreThan48Pixels:
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimMaxHP + 1]
|
2015-12-14 08:12:18 -08:00
|
|
|
and a
|
|
|
|
jr nz, .player
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimMaxHP]
|
2018-01-01 10:43:02 -08:00
|
|
|
cp HP_BAR_LENGTH_PX
|
2015-12-14 08:12:18 -08:00
|
|
|
jr nc, .player
|
|
|
|
and a
|
|
|
|
ret
|
|
|
|
|
|
|
|
.player
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
.ComputePixels:
|
2015-12-14 08:12:18 -08:00
|
|
|
push hl
|
2016-05-16 06:36:24 -07:00
|
|
|
ld hl, wCurHPAnimMaxHP
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, [hli]
|
|
|
|
ld e, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld d, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld c, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld b, a
|
|
|
|
pop hl
|
|
|
|
call ComputeHPBarPixels
|
|
|
|
ld a, e
|
2016-03-01 19:31:21 -08:00
|
|
|
ld [wCurHPBarPixels], a
|
2015-12-14 08:12:18 -08:00
|
|
|
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimNewHP]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld c, a
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimNewHP + 1]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld b, a
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimMaxHP]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld e, a
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimMaxHP + 1]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld d, a
|
|
|
|
call ComputeHPBarPixels
|
|
|
|
ld a, e
|
2016-03-01 19:31:21 -08:00
|
|
|
ld [wNewHPBarPixels], a
|
2015-12-14 08:12:18 -08:00
|
|
|
|
|
|
|
push hl
|
2016-05-16 06:36:24 -07:00
|
|
|
ld hl, wCurHPAnimOldHP
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, [hli]
|
|
|
|
ld c, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld b, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld e, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld d, a
|
|
|
|
pop hl
|
|
|
|
ld a, e
|
|
|
|
sub c
|
|
|
|
ld e, a
|
|
|
|
ld a, d
|
|
|
|
sbc b
|
|
|
|
ld d, a
|
2016-03-01 19:31:21 -08:00
|
|
|
jr c, .negative
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimOldHP]
|
|
|
|
ld [wCurHPAnimLowHP], a
|
|
|
|
ld a, [wCurHPAnimNewHP]
|
|
|
|
ld [wCurHPAnimHighHP], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ld bc, 1
|
2016-03-01 19:31:21 -08:00
|
|
|
jr .got_direction
|
2015-12-14 08:12:18 -08:00
|
|
|
|
2016-03-01 19:31:21 -08:00
|
|
|
.negative
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimOldHP]
|
|
|
|
ld [wCurHPAnimHighHP], a
|
|
|
|
ld a, [wCurHPAnimNewHP]
|
|
|
|
ld [wCurHPAnimLowHP], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, e
|
|
|
|
xor $ff
|
|
|
|
inc a
|
|
|
|
ld e, a
|
|
|
|
ld a, d
|
|
|
|
xor $ff
|
|
|
|
ld d, a
|
2016-03-01 19:31:21 -08:00
|
|
|
ld bc, -1
|
|
|
|
.got_direction
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, d
|
2016-05-16 06:36:24 -07:00
|
|
|
ld [wCurHPAnimDeltaHP], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, e
|
2016-05-16 06:36:24 -07:00
|
|
|
ld [wCurHPAnimDeltaHP + 1], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
ShortAnim_UpdateVariables:
|
2016-03-01 19:31:21 -08:00
|
|
|
ld hl, wCurHPBarPixels
|
|
|
|
ld a, [wNewHPBarPixels]
|
2015-12-14 08:12:18 -08:00
|
|
|
cp [hl]
|
2016-03-01 19:31:21 -08:00
|
|
|
jr nz, .not_finished
|
2015-12-14 08:12:18 -08:00
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2016-03-01 19:31:21 -08:00
|
|
|
.not_finished
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, c
|
|
|
|
add [hl]
|
|
|
|
ld [hl], a
|
2016-03-08 16:54:06 -08:00
|
|
|
call ShortHPBar_CalcPixelFrame
|
2015-12-14 08:12:18 -08:00
|
|
|
and a
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
LongAnim_UpdateVariables:
|
2016-03-01 19:31:21 -08:00
|
|
|
.loop
|
2016-05-16 06:36:24 -07:00
|
|
|
ld hl, wCurHPAnimOldHP
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, [hli]
|
|
|
|
ld e, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld d, a
|
|
|
|
ld a, e
|
|
|
|
cp [hl]
|
2016-03-01 19:31:21 -08:00
|
|
|
jr nz, .next
|
2015-12-14 08:12:18 -08:00
|
|
|
inc hl
|
|
|
|
ld a, d
|
|
|
|
cp [hl]
|
2016-03-01 19:31:21 -08:00
|
|
|
jr nz, .next
|
2015-12-14 08:12:18 -08:00
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2016-03-01 19:31:21 -08:00
|
|
|
.next
|
2015-12-14 08:12:18 -08:00
|
|
|
ld l, e
|
|
|
|
ld h, d
|
|
|
|
add hl, bc
|
|
|
|
ld a, l
|
2016-05-16 06:36:24 -07:00
|
|
|
ld [wCurHPAnimOldHP], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, h
|
2016-05-16 06:36:24 -07:00
|
|
|
ld [wCurHPAnimOldHP + 1], a
|
2015-12-14 08:12:18 -08:00
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
push bc
|
2016-05-16 06:36:24 -07:00
|
|
|
ld hl, wCurHPAnimMaxHP
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, [hli]
|
|
|
|
ld e, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld d, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld c, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld b, a
|
2022-07-09 14:12:02 -07:00
|
|
|
; BUG: HP bar animation is slow for high HP (see docs/bugs_and_glitches.md)
|
2015-12-14 08:12:18 -08:00
|
|
|
call ComputeHPBarPixels
|
|
|
|
pop bc
|
|
|
|
pop de
|
|
|
|
pop hl
|
2022-07-09 14:12:02 -07:00
|
|
|
ld a, e
|
2016-03-01 19:31:21 -08:00
|
|
|
ld hl, wCurHPBarPixels
|
2015-12-14 08:12:18 -08:00
|
|
|
cp [hl]
|
2016-03-01 19:31:21 -08:00
|
|
|
jr z, .loop
|
2015-12-14 08:12:18 -08:00
|
|
|
ld [hl], a
|
|
|
|
and a
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
ShortHPBarAnim_UpdateTiles:
|
2016-03-08 16:54:06 -08:00
|
|
|
call HPBarAnim_UpdateHPRemaining
|
2018-01-01 10:43:02 -08:00
|
|
|
ld d, HP_BAR_LENGTH
|
2015-12-26 15:11:55 -08:00
|
|
|
ld a, [wWhichHPBar]
|
2015-12-14 08:12:18 -08:00
|
|
|
and $1
|
|
|
|
ld b, a
|
2016-03-01 19:31:21 -08:00
|
|
|
ld a, [wCurHPBarPixels]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld e, a
|
|
|
|
ld c, a
|
|
|
|
push de
|
2016-03-08 16:54:06 -08:00
|
|
|
call HPBarAnim_RedrawHPBar
|
2015-12-14 08:12:18 -08:00
|
|
|
pop de
|
2016-03-08 16:54:06 -08:00
|
|
|
call HPBarAnim_PaletteUpdate
|
2015-12-14 08:12:18 -08:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
LongHPBarAnim_UpdateTiles:
|
2016-03-08 16:54:06 -08:00
|
|
|
call HPBarAnim_UpdateHPRemaining
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimOldHP]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld c, a
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimOldHP + 1]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld b, a
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimMaxHP]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld e, a
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimMaxHP + 1]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld d, a
|
|
|
|
call ComputeHPBarPixels
|
|
|
|
ld c, e
|
2018-01-01 10:43:02 -08:00
|
|
|
ld d, HP_BAR_LENGTH
|
2015-12-26 15:11:55 -08:00
|
|
|
ld a, [wWhichHPBar]
|
2015-12-14 08:12:18 -08:00
|
|
|
and $1
|
|
|
|
ld b, a
|
|
|
|
push de
|
2016-03-08 16:54:06 -08:00
|
|
|
call HPBarAnim_RedrawHPBar
|
2015-12-14 08:12:18 -08:00
|
|
|
pop de
|
2016-03-08 16:54:06 -08:00
|
|
|
call HPBarAnim_PaletteUpdate
|
2015-12-14 08:12:18 -08:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
HPBarAnim_RedrawHPBar:
|
2015-12-26 15:11:55 -08:00
|
|
|
ld a, [wWhichHPBar]
|
2015-12-14 08:12:18 -08:00
|
|
|
cp $2
|
|
|
|
jr nz, .skip
|
2016-03-08 16:54:06 -08:00
|
|
|
ld a, 2 * SCREEN_WIDTH
|
2015-12-14 08:12:18 -08:00
|
|
|
add l
|
|
|
|
ld l, a
|
2016-03-08 16:54:06 -08:00
|
|
|
ld a, 0
|
2015-12-14 08:12:18 -08:00
|
|
|
adc h
|
|
|
|
ld h, a
|
|
|
|
.skip
|
|
|
|
call DrawBattleHPBar
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
HPBarAnim_UpdateHPRemaining:
|
2015-12-26 15:11:55 -08:00
|
|
|
ld a, [wWhichHPBar]
|
2015-12-14 08:12:18 -08:00
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
cp $1
|
|
|
|
jr z, .load_15
|
2016-03-08 16:54:06 -08:00
|
|
|
ld de, SCREEN_WIDTH + 2
|
2015-12-14 08:12:18 -08:00
|
|
|
jr .loaded_de
|
|
|
|
|
|
|
|
.load_15
|
2016-03-08 16:54:06 -08:00
|
|
|
ld de, SCREEN_WIDTH + 1
|
2015-12-14 08:12:18 -08:00
|
|
|
.loaded_de
|
|
|
|
push hl
|
|
|
|
add hl, de
|
|
|
|
ld a, " "
|
|
|
|
ld [hli], a
|
2016-05-04 08:46:23 -07:00
|
|
|
ld [hli], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ld [hld], a
|
|
|
|
dec hl
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimOldHP]
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wStringBuffer2 + 1], a
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimOldHP + 1]
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wStringBuffer2], a
|
|
|
|
ld de, wStringBuffer2
|
2015-12-14 08:12:18 -08:00
|
|
|
lb bc, 2, 3
|
|
|
|
call PrintNum
|
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
HPBarAnim_PaletteUpdate:
|
2016-05-16 06:36:24 -07:00
|
|
|
ld hl, wCurHPAnimPal
|
2015-12-14 08:12:18 -08:00
|
|
|
call SetHPPal
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimPal]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld c, a
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall ApplyHPBarPals
|
2015-12-14 08:12:18 -08:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
HPBarAnim_BGMapUpdate:
|
2015-12-26 15:11:55 -08:00
|
|
|
ld a, [wWhichHPBar]
|
2015-12-14 08:12:18 -08:00
|
|
|
and a
|
|
|
|
jr z, .load_0
|
|
|
|
cp $1
|
|
|
|
jr z, .load_1
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wCurPartyMon]
|
2015-12-14 08:12:18 -08:00
|
|
|
cp $3
|
2016-03-08 16:54:06 -08:00
|
|
|
jr nc, .bottom_half_of_screen
|
2015-12-14 08:12:18 -08:00
|
|
|
ld c, $0
|
2016-03-08 16:54:06 -08:00
|
|
|
jr .got_third
|
2015-12-14 08:12:18 -08:00
|
|
|
|
2016-03-08 16:54:06 -08:00
|
|
|
.bottom_half_of_screen
|
2015-12-14 08:12:18 -08:00
|
|
|
ld c, $1
|
2016-03-08 16:54:06 -08:00
|
|
|
.got_third
|
2015-12-14 08:12:18 -08:00
|
|
|
push af
|
|
|
|
cp $2
|
|
|
|
jr z, .skip_delay
|
|
|
|
cp $5
|
|
|
|
jr z, .skip_delay
|
|
|
|
ld a, $2
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, c
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapThird], a
|
2015-12-14 08:12:18 -08:00
|
|
|
call DelayFrame
|
|
|
|
.skip_delay
|
|
|
|
ld a, $1
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, c
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapThird], a
|
2015-12-14 08:12:18 -08:00
|
|
|
call DelayFrame
|
|
|
|
pop af
|
|
|
|
cp $2
|
|
|
|
jr z, .two_frames
|
|
|
|
cp $5
|
|
|
|
jr z, .two_frames
|
|
|
|
ret
|
|
|
|
|
|
|
|
.two_frames
|
|
|
|
inc c
|
|
|
|
ld a, $2
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, c
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapThird], a
|
2015-12-14 08:12:18 -08:00
|
|
|
call DelayFrame
|
|
|
|
ld a, $1
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, c
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapThird], a
|
2015-12-14 08:12:18 -08:00
|
|
|
call DelayFrame
|
|
|
|
ret
|
|
|
|
|
|
|
|
.load_0
|
|
|
|
ld c, $0
|
|
|
|
jr .finish
|
|
|
|
|
|
|
|
.load_1
|
|
|
|
ld c, $1
|
|
|
|
.finish
|
|
|
|
call DelayFrame
|
|
|
|
ld a, c
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapThird], a
|
2015-12-14 08:12:18 -08:00
|
|
|
call DelayFrame
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
ShortHPBar_CalcPixelFrame:
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimMaxHP]
|
2015-12-14 08:12:18 -08:00
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
ld hl, 0
|
2016-03-01 19:31:21 -08:00
|
|
|
ld a, [wCurHPBarPixels]
|
2018-01-01 10:43:02 -08:00
|
|
|
cp HP_BAR_LENGTH_PX
|
2016-03-08 16:54:06 -08:00
|
|
|
jr nc, .return_max
|
2015-12-14 08:12:18 -08:00
|
|
|
and a
|
|
|
|
jr z, .return_zero
|
|
|
|
call AddNTimes
|
2017-12-12 19:58:20 -08:00
|
|
|
|
2015-12-14 08:12:18 -08:00
|
|
|
ld b, 0
|
|
|
|
.loop
|
2022-07-09 14:12:02 -07:00
|
|
|
; BUG: HP bar animation off-by-one error for low HP (see docs/bugs_and_glitches.md)
|
2015-12-14 08:12:18 -08:00
|
|
|
ld a, l
|
2018-01-01 10:43:02 -08:00
|
|
|
sub HP_BAR_LENGTH_PX
|
2015-12-14 08:12:18 -08:00
|
|
|
ld l, a
|
|
|
|
ld a, h
|
|
|
|
sbc $0
|
|
|
|
ld h, a
|
|
|
|
jr c, .done
|
|
|
|
inc b
|
|
|
|
jr .loop
|
|
|
|
|
|
|
|
.done
|
|
|
|
push bc
|
|
|
|
ld bc, $80
|
|
|
|
add hl, bc
|
|
|
|
pop bc
|
|
|
|
ld a, l
|
2018-01-01 10:43:02 -08:00
|
|
|
sub HP_BAR_LENGTH_PX
|
2015-12-14 08:12:18 -08:00
|
|
|
ld l, a
|
|
|
|
ld a, h
|
|
|
|
sbc $0
|
|
|
|
ld h, a
|
|
|
|
jr c, .no_carry
|
|
|
|
inc b
|
|
|
|
.no_carry
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimLowHP]
|
2015-12-14 08:12:18 -08:00
|
|
|
cp b
|
|
|
|
jr nc, .finish
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimHighHP]
|
2015-12-14 08:12:18 -08:00
|
|
|
cp b
|
|
|
|
jr c, .finish
|
|
|
|
ld a, b
|
|
|
|
.finish
|
2016-05-16 06:36:24 -07:00
|
|
|
ld [wCurHPAnimOldHP], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ret
|
|
|
|
|
|
|
|
.return_zero
|
|
|
|
xor a
|
2016-05-16 06:36:24 -07:00
|
|
|
ld [wCurHPAnimOldHP], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ret
|
|
|
|
|
2016-03-08 16:54:06 -08:00
|
|
|
.return_max
|
2016-05-16 06:36:24 -07:00
|
|
|
ld a, [wCurHPAnimMaxHP]
|
|
|
|
ld [wCurHPAnimOldHP], a
|
2015-12-14 08:12:18 -08:00
|
|
|
ret
|