aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events/hidden_objects
diff options
context:
space:
mode:
authorSylvie <35663410+Rangi42@users.noreply.github.com>2024-09-24 11:39:44 -0400
committerGitHub <noreply@github.com>2024-09-24 11:39:44 -0400
commit635b9c4cab523100a797b17b28788281159371c0 (patch)
treee2363703bfa658bd230f0822e8a1389837adb0dd /engine/events/hidden_objects
parentIdentify hardware register bits (#469) (diff)
downloadpokeyellow-635b9c4cab523100a797b17b28788281159371c0.tar.gz
pokeyellow-635b9c4cab523100a797b17b28788281159371c0.tar.xz
pokeyellow-635b9c4cab523100a797b17b28788281159371c0.zip
Identify `wCurrentMapScriptFlags` bits (#467)
Diffstat (limited to 'engine/events/hidden_objects')
-rw-r--r--engine/events/hidden_objects/cinnabar_gym_quiz.asm2
-rw-r--r--engine/events/hidden_objects/vermilion_gym_trash.asm2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/events/hidden_objects/cinnabar_gym_quiz.asm b/engine/events/hidden_objects/cinnabar_gym_quiz.asm
index 69f03f2c..a14bd198 100644
--- a/engine/events/hidden_objects/cinnabar_gym_quiz.asm
+++ b/engine/events/hidden_objects/cinnabar_gym_quiz.asm
@@ -83,7 +83,7 @@ CinnabarGymQuiz_AskQuestion:
cp c
jr nz, .wrongAnswer
ld hl, wCurrentMapScriptFlags
- set 5, [hl]
+ set BIT_CUR_MAP_LOADED_1, [hl]
ldh a, [hGymGateIndex]
ldh [hBackupGymGateIndex], a
ld hl, CinnabarGymQuizCorrectText
diff --git a/engine/events/hidden_objects/vermilion_gym_trash.asm b/engine/events/hidden_objects/vermilion_gym_trash.asm
index c2bfed06..92fb1406 100644
--- a/engine/events/hidden_objects/vermilion_gym_trash.asm
+++ b/engine/events/hidden_objects/vermilion_gym_trash.asm
@@ -97,7 +97,7 @@ GymTrashScript:
; Completed the trash can puzzle.
SetEvent EVENT_2ND_LOCK_OPENED
ld hl, wCurrentMapScriptFlags
- set 6, [hl]
+ set BIT_CUR_MAP_LOADED_2, [hl]
tx_pre_id VermilionGymTrashSuccessText3