summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2017-07-02 14:43:51 -0500
committerMarcus Huderle <huderlem@gmail.com>2017-07-02 14:43:51 -0500
commit470e41e5852bbf4f7eaf5d3bf546f02b9704e9bd (patch)
treefcf1a88bcf21bdd0d3cfa83af6b2120c7e187449
parent7fc29c831ba0d7b1d7e36c09a7d5736c64bc8209 (diff)
Use constant for number of times needed to beat mewtwo bonus stage for mew
-rwxr-xr-xconstants/pinball_game_constants.asm3
-rwxr-xr-xmain.asm2
2 files changed, 4 insertions, 1 deletions
diff --git a/constants/pinball_game_constants.asm b/constants/pinball_game_constants.asm
index 1d3cbb2..f332a0d 100755
--- a/constants/pinball_game_constants.asm
+++ b/constants/pinball_game_constants.asm
@@ -6,3 +6,6 @@ EVOLUTION_MODE_SLOT_REWARD EQU 2
SPECIAL_MODE_CATCHEM EQU 1
SPECIAL_MODE_EVOLUTION EQU 2
SPECIAL_MODE_MAP_MOVE EQU 2 ; shares value with SPECIAL_MODE_EVOLUTION
+
+; To encounter Mew, you must first beat Mewtwo's bonus stage 2 times.
+NUM_MEWTWO_COMPLETIONS_FOR_MEW EQU 2
diff --git a/main.asm b/main.asm
index d4a79fb..aab6b9e 100755
--- a/main.asm
+++ b/main.asm
@@ -368,7 +368,7 @@ CheckForMew:
cp $8
jr nz, .asm_10155
ld a, [wNumMewtwoBonusCompletions]
- cp $2
+ cp NUM_MEWTWO_COMPLETIONS_FOR_MEW
jr nz, .asm_10155
pop af
xor a