Define a constant for the ghost Marowak (hard-coded throughout the engine, like the starters)

This commit is contained in:
Rangi 2020-08-31 10:58:41 -04:00
parent bfd9f617c9
commit 8ce20e5c31
8 changed files with 14 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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