Consolidate coord macros

This commit is contained in:
dannye 2015-07-18 15:52:03 -05:00
parent 0ad1153f16
commit 148d3f3cf2
58 changed files with 528 additions and 539 deletions

View file

@ -71,10 +71,10 @@ DrainHPEffect_: ; 783f (1:783f)
.next
ld a, [H_WHOSETURN]
and a
hlCoord 10, 9
coord hl, 10, 9
ld a, $1
jr z, .next2
hlCoord 2, 2
coord hl, 2, 2
xor a
.next2
ld [wHPBarType], a

View file

@ -89,10 +89,10 @@ HealEffect_: ; 3b9ec (e:79ec)
call BankswitchEtoF
ld a, [H_WHOSETURN]
and a
hlCoord 10, 9
coord hl, 10, 9
ld a, $1
jr z, .updateHPBar
hlCoord 2, 2
coord hl, 2, 2
xor a
.updateHPBar
ld [wHPBarType], a

View file

@ -53,12 +53,12 @@ RecoilEffect_: ; 1392c (4:792c)
ld [hli], a
ld [hl], a
.getHPBarCoords
hlCoord 10, 9
coord hl, 10, 9
ld a, [H_WHOSETURN]
and a
ld a, $1
jr z, .updateHPBar
hlCoord 2, 2
coord hl, 2, 2
xor a
.updateHPBar
ld [wHPBarType], a