summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2019-07-07 00:44:21 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2019-07-07 00:44:21 -0400
commitf99a715fae311d2611ec4a714b002e103c4642ca (patch)
tree55c3b2f36f037ab192777755fe7e4b8f5a22131d /home.asm
parent725b86ebbec23bd1f53fd60bf0201c904fee951d (diff)
Replace some hard-coded values with constants
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/home.asm b/home.asm
index 70dab701..0397cb08 100644
--- a/home.asm
+++ b/home.asm
@@ -2390,7 +2390,7 @@ EndTrainerBattle::
ld b, FLAG_SET
call TrainerFlagAction ; flag trainer as fought
ld a, [wEnemyMonOrTrainerClass]
- cp 200
+ cp OPP_ID_OFFSET
jr nc, .skipRemoveSprite ; test if trainer was fought (in that case skip removing the corresponding sprite)
ld hl, wMissableObjectList
ld de, $2
@@ -2424,7 +2424,7 @@ InitBattleEnemyParameters::
ld a, [wEngagedTrainerClass]
ld [wCurOpponent], a
ld [wEnemyMonOrTrainerClass], a
- cp 200
+ cp OPP_ID_OFFSET
ld a, [wEngagedTrainerSet]
jr c, .noTrainer
ld [wTrainerNo], a