mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Fix typos in comments
This commit is contained in:
parent
e9f33ce19c
commit
7a9a1b1e55
23 changed files with 49 additions and 49 deletions
|
|
@ -76,7 +76,7 @@ HealEffect_:
|
|||
ld a, [de]
|
||||
sbc [hl]
|
||||
jr c, .playAnim
|
||||
; copy max HP to current HP if an overflow ocurred
|
||||
; copy max HP to current HP if an overflow occurred
|
||||
ld a, [hli]
|
||||
ld [de], a
|
||||
ld [wHPBarNewHP+1], a
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ RecoilEffect_:
|
|||
jr nz, .updateHP
|
||||
inc c ; minimum recoil damage is 1
|
||||
.updateHP
|
||||
; substract HP from user due to the recoil damage
|
||||
; subtract HP from user due to the recoil damage
|
||||
ld a, [hli]
|
||||
ld [wHPBarMaxHP+1], a
|
||||
ld a, [hl]
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ SubstituteEffect_:
|
|||
sbc 0
|
||||
pop bc
|
||||
jr c, .notEnoughHP ; underflow means user would be left with negative health
|
||||
; bug: since it only brances on carry, it will possibly leave user with 0 HP
|
||||
; bug: since it only branches on carry, it will possibly leave user with 0 HP
|
||||
.userHasZeroOrMoreHP
|
||||
ldi [hl], a ; save resulting HP after substraction into current HP
|
||||
ldi [hl], a ; save resulting HP after subtraction into current HP
|
||||
ld [hl], d
|
||||
ld h, b
|
||||
ld l, c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue