summaryrefslogtreecommitdiff
path: root/engine/pokemon
diff options
context:
space:
mode:
authorjd-0 <44876081+jd-0@users.noreply.github.com>2020-09-20 12:07:01 -0700
committerjd-0 <44876081+jd-0@users.noreply.github.com>2020-09-20 12:07:01 -0700
commit8900eb7ad06931b78dcb91e0c2e7db583090aa06 (patch)
treea08cd946f4b421f2d25e246df3d6d3375dc5ea05 /engine/pokemon
parente789ee48b65e8cc08104ef06de4b08c9ef9d117d (diff)
Remove address comments
Regex patterns used: ; [0-9a-f]{1,5} \([0-9a-f]{1,2}:[0-9a-f]{1,4}\) ; [0-9a-f]{1,2}:[0-9a-f]{4} ; [0-9a-f]{4,5} ;[0-9a-f]{4,5} ;[0-9a-f]{1,2}:[0-9a-f]{1,4}
Diffstat (limited to 'engine/pokemon')
-rwxr-xr-xengine/pokemon/health.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/pokemon/health.asm b/engine/pokemon/health.asm
index 929af05..0bb3536 100755
--- a/engine/pokemon/health.asm
+++ b/engine/pokemon/health.asm
@@ -2,7 +2,7 @@ INCLUDE "constants.asm"
SECTION "engine/pokemon/health.asm@HealParty", ROMX
-HealParty: ; 03:4d6f
+HealParty:
ld hl, wPartySpecies
ld de, wPartyMons
@@ -97,7 +97,7 @@ HealParty: ; 03:4d6f
SECTION "engine/pokemon/health.asm@HP Bar", ROMX
-ComputeHPBarPixels: ; 03:4e3c
+ComputeHPBarPixels:
push hl
xor a
ldh [hMultiplicand], a
@@ -140,7 +140,7 @@ ComputeHPBarPixels: ; 03:4e3c
ld e, 1
ret
-UpdateHPBar: ; 03:4e7c
+UpdateHPBar:
ld a, [wHPBarOldHP]
ld c, a
ld a, [wHPBarOldHP + 1]
@@ -229,7 +229,7 @@ UpdateHPBar: ; 03:4e7c
; animates the HP bar going up or down for (a) ticks (two waiting frames each)
; stops prematurely if bar is filled up
; e: current health (in pixels) to start with
-UpdateHPBar_AnimateHPBar: ; 03:4F11
+UpdateHPBar_AnimateHPBar:
push hl
.bar_animation_loop
@@ -259,7 +259,7 @@ UpdateHPBar_AnimateHPBar: ; 03:4F11
ret
; compares old HP and new HP and sets c and z flags accordingly
-UpdateHPBar_CompareNewHPToOldHP: ; 03:4F37
+UpdateHPBar_CompareNewHPToOldHP:
ld a, d
sub b
ret nz
@@ -268,7 +268,7 @@ UpdateHPBar_CompareNewHPToOldHP: ; 03:4F37
ret
; calcs HP difference between bc and de (into de)
-UpdateHPBar_CalcHPDifference: ; 03:4F3D
+UpdateHPBar_CalcHPDifference:
ld a, d
sub b
jr c, .old_hp_greater
@@ -297,7 +297,7 @@ UpdateHPBar_CalcHPDifference: ; 03:4F3D
ld de, 0
ret
-UpdateHPBar_PrintHPNumber: ; 03:4F5B
+UpdateHPBar_PrintHPNumber:
push af
push de
ld a, [wHPBarType]
@@ -329,7 +329,7 @@ UpdateHPBar_PrintHPNumber: ; 03:4F5B
; calcs number of HP bar pixels for old and new HP value
; d: new pixels
; e: old pixels
-UpdateHPBar_CalcOldNewHPBarPixels: ; 03:4F8B
+UpdateHPBar_CalcOldNewHPBarPixels:
push hl
ld hl, wHPBarMaxHP
ld a, [hli]