summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2017-07-02 14:41:54 -0500
committerMarcus Huderle <huderlem@gmail.com>2017-07-02 14:41:54 -0500
commit7fc29c831ba0d7b1d7e36c09a7d5736c64bc8209 (patch)
tree787eb94f8db1f49b4056ab24720f59dc81295c35
parentd96ff8f4adfb760db788deffa75a335ad1873ba3 (diff)
Use dynamic values for Mew map check
-rwxr-xr-xmain.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.asm b/main.asm
index f575929..d4a79fb 100755
--- a/main.asm
+++ b/main.asm
@@ -359,10 +359,10 @@ CheckForMew:
cp $f ; random number equals $f
jr nz, .asm_10155
ld a, c
- cp $60 ; check if low-byte of map mons offset is Indigo Plateau
+ cp (BlueStageIndigoPlateauWildMons - BlueStageWildMons) & $ff ; check if low-byte of map mons offset is Indigo Plateau
jr nz, .asm_10155
ld a, b
- cp $1 ; check if high-byte of map mons offset is Indigo Plateau
+ cp (BlueStageIndigoPlateauWildMons - BlueStageWildMons) >> 8 ; check if high-byte of map mons offset is Indigo Plateau
jr nz, .asm_10155
ld a, [wRareMonsFlag]
cp $8