summaryrefslogtreecommitdiff
path: root/engine/battle
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-08-31 10:58:41 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-08-31 10:58:41 -0400
commit8ce20e5c31ed2255e708e6a38c7b75d3d8bee48c (patch)
tree8c4770326f0b1b347a84f7adf4e7d3f447a51992 /engine/battle
parentbfd9f617c96af851ad4100b752ea967ef8989edc (diff)
Define a constant for the ghost Marowak (hard-coded throughout the engine, like the starters)
Diffstat (limited to 'engine/battle')
-rw-r--r--engine/battle/common_text.asm2
-rwxr-xr-xengine/battle/core.asm2
-rw-r--r--engine/battle/ghost_marowak_anim.asm2
3 files changed, 3 insertions, 3 deletions
diff --git a/engine/battle/common_text.asm b/engine/battle/common_text.asm
index 9f6f90b6..8c9e6afa 100644
--- a/engine/battle/common_text.asm
+++ b/engine/battle/common_text.asm
@@ -33,7 +33,7 @@ PrintBeginningBattleText:
call IsItemInBag
ld a, [wEnemyMonSpecies2]
ld [wcf91], a
- cp MAROWAK
+ cp GHOST_MON
jr z, .isMarowak
ld a, b
and a
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index 4f35ba39..8289ecc9 100755
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -6784,7 +6784,7 @@ InitWildBattle:
call LoadEnemyMonData
call DoBattleTransitionAndInitBattleVariables
ld a, [wCurOpponent]
- cp MAROWAK
+ cp GHOST_MON
jr z, .isGhost
call IsGhostBattle
jr nz, .isNoGhost
diff --git a/engine/battle/ghost_marowak_anim.asm b/engine/battle/ghost_marowak_anim.asm
index 7405c40b..975bb937 100644
--- a/engine/battle/ghost_marowak_anim.asm
+++ b/engine/battle/ghost_marowak_anim.asm
@@ -11,7 +11,7 @@ MarowakAnim:
xor a
ldh [hAutoBGTransferEnabled], a ; disable BG transfer so we don't see the Marowak too soon
; replace ghost pic with Marowak in BG
- ld a, MAROWAK
+ ld a, GHOST_MON
ld [wChangeMonPicEnemyTurnSpecies], a
ld a, $1
ldh [hWhoseTurn], a