From 470e41e5852bbf4f7eaf5d3bf546f02b9704e9bd Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 2 Jul 2017 14:43:51 -0500 Subject: [PATCH] Use constant for number of times needed to beat mewtwo bonus stage for mew --- constants/pinball_game_constants.asm | 3 +++ main.asm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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