summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/battle.asm16
-rw-r--r--home/init.asm3
-rw-r--r--home/map.asm2
-rw-r--r--home/pokedex_flags.asm3
4 files changed, 11 insertions, 13 deletions
diff --git a/home/battle.asm b/home/battle.asm
index fc670d927..d1f59ad81 100644
--- a/home/battle.asm
+++ b/home/battle.asm
@@ -130,8 +130,8 @@ RefreshBattleHuds:: ; 39c9
; 39d4
UpdateBattleHuds:: ; 39d4
- callba Function3df48
- callba Function3e036
+ callba UpdatePlayerHUD
+ callba UpdateEnemyHUD
ret
; 39e1
@@ -139,12 +139,12 @@ UpdateBattleHuds:: ; 39d4
GetBattleVar:: ; 39e1
; Preserves hl.
push hl
- call _GetBattleVar
+ call GetBattleVarAddr
pop hl
ret
; 39e7
-_GetBattleVar:: ; 39e7
+GetBattleVarAddr:: ; 39e7
; Get variable from pair a, depending on whose turn it is.
; There are 21 variable pairs.
@@ -250,10 +250,10 @@ _GetBattleVar:: ; 39e7
dw PlayerSubStatus4, EnemySubStatus4
dw PlayerSubStatus5, EnemySubStatus5
dw BattleMonStatus, EnemyMonStatus
- dw PlayerMoveAnimation, EnemyMoveAnimation
- dw PlayerMoveEffect, EnemyMoveEffect
- dw PlayerMovePower, EnemyMovePower
- dw PlayerMoveType, EnemyMoveType
+ dw wPlayerMoveStruct + MOVE_ANIM, wEnemyMoveStruct + MOVE_ANIM
+ dw wPlayerMoveStruct + MOVE_EFFECT, wEnemyMoveStruct + MOVE_EFFECT
+ dw wPlayerMoveStruct + MOVE_POWER, wEnemyMoveStruct + MOVE_POWER
+ dw wPlayerMoveStruct + MOVE_TYPE, wEnemyMoveStruct + MOVE_TYPE
dw CurPlayerMove, CurEnemyMove
dw LastEnemyCounterMove, LastPlayerCounterMove
dw LastPlayerMove, LastEnemyMove
diff --git a/home/init.asm b/home/init.asm
index 3d83a03cf..20e043180 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -167,8 +167,7 @@ Init:: ; 17d
call DelayFrame
- ld a, $30
- call Predef
+ predef Function9853
call SoundRestart
xor a
diff --git a/home/map.asm b/home/map.asm
index 77a53b8d2..2291faa29 100644
--- a/home/map.asm
+++ b/home/map.asm
@@ -120,7 +120,7 @@ Function2198:: ; 2198
ld e, a
ld a, [$d195]
ld d, a
- ld hl, EnemyMoveAnimation
+ ld hl, $c608
ld b, $5
.asm_21a5
diff --git a/home/pokedex_flags.asm b/home/pokedex_flags.asm
index 0ad13b497..ac59ffeb8 100644
--- a/home/pokedex_flags.asm
+++ b/home/pokedex_flags.asm
@@ -31,8 +31,7 @@ CheckSeenMon:: ; 339b
PokedexFlagAction:: ; 33a1
ld d, 0
- ld a, PREDEF_FLAG
- call Predef
+ predef FlagPredef
ld a, c
and a
ret