summaryrefslogtreecommitdiff
path: root/home/battle.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/battle.asm')
-rw-r--r--home/battle.asm21
1 files changed, 2 insertions, 19 deletions
diff --git a/home/battle.asm b/home/battle.asm
index 1899a40dc..e88adef02 100644
--- a/home/battle.asm
+++ b/home/battle.asm
@@ -9,7 +9,6 @@ UserPartyAttr::
pop af
jr OTPartyAttr
-
OpponentPartyAttr::
push af
ld a, [hBattleTurn]
@@ -21,7 +20,6 @@ OpponentPartyAttr::
pop af
jr OTPartyAttr
-
BattlePartyAttr::
; Get attribute a from the party struct of the active battle mon.
push bc
@@ -34,7 +32,6 @@ BattlePartyAttr::
pop bc
ret
-
OTPartyAttr::
; Get attribute a from the party struct of the active enemy mon.
push bc
@@ -47,7 +44,6 @@ OTPartyAttr::
pop bc
ret
-
ResetDamage::
xor a
ld [wCurDamage], a
@@ -64,7 +60,6 @@ SetEnemyTurn::
ld [hBattleTurn], a
ret
-
UpdateOpponentInParty::
ld a, [hBattleTurn]
and a
@@ -110,7 +105,6 @@ UpdateEnemyMonInParty::
ld bc, wEnemyMonMaxHP - wEnemyMonLevel
jp CopyBytes
-
RefreshBattleHuds::
call UpdateBattleHuds
ld c, 3
@@ -122,10 +116,8 @@ UpdateBattleHuds::
farcall UpdateEnemyHUD
ret
-
INCLUDE "home/battle_vars.asm"
-
FarCopyRadioText::
inc hl
ld a, [hROMBank]
@@ -149,12 +141,7 @@ FarCopyRadioText::
ld [MBC3RomBank], a
ret
-
MobileTextBorder::
-
-CELL_PHONE_TOP EQU $5e
-CELL_PHONE_BOTTOM EQU $5f
-
; For mobile link battles only.
ld a, [wLinkMode]
cp LINK_MOBILE
@@ -163,12 +150,11 @@ CELL_PHONE_BOTTOM EQU $5f
; Draw a cell phone icon at the
; top right corner of the border.
hlcoord 19, 12
- ld [hl], CELL_PHONE_TOP
+ ld [hl], $5e ; top
hlcoord 19, 13
- ld [hl], CELL_PHONE_BOTTOM
+ ld [hl], $5f ; bottom
ret
-
BattleTextBox::
; Open a textbox and print text at hl.
push hl
@@ -180,7 +166,6 @@ BattleTextBox::
call PrintTextBoxText
ret
-
StdBattleTextBox::
; Open a textbox and print battle text at 20:hl.
@@ -197,7 +182,6 @@ StdBattleTextBox::
ret
GetBattleAnimPointer::
-
ld a, BANK(BattleAnimations)
rst Bankswitch
@@ -212,7 +196,6 @@ GetBattleAnimPointer::
ret
GetBattleAnimByte::
-
push hl
push de