mirror of
https://github.com/pret/pokeyellow.git
synced 2024-11-23 14:00:03 +00:00
Identify wCurrentMapScriptFlags
bits (#467)
This commit is contained in:
parent
6ae63a8cea
commit
635b9c4cab
@ -23,6 +23,12 @@ DEF BIT_TEXT_PREDEF EQU 0
|
|||||||
; wFontLoaded
|
; wFontLoaded
|
||||||
DEF BIT_FONT_LOADED EQU 0
|
DEF BIT_FONT_LOADED EQU 0
|
||||||
|
|
||||||
|
; wCurrentMapScriptFlags
|
||||||
|
const_def 5
|
||||||
|
const BIT_CUR_MAP_LOADED_1 ; 5
|
||||||
|
const BIT_CUR_MAP_LOADED_2 ; 6
|
||||||
|
const BIT_CUR_MAP_USED_ELEVATOR ; 7
|
||||||
|
|
||||||
; wOptions
|
; wOptions
|
||||||
DEF TEXT_DELAY_MASK EQU %111
|
DEF TEXT_DELAY_MASK EQU %111
|
||||||
const_def 6
|
const_def 6
|
||||||
|
@ -50,7 +50,7 @@ PrintCardKeyText:
|
|||||||
ld [wNewTileBlockID], a
|
ld [wNewTileBlockID], a
|
||||||
predef ReplaceTileBlock
|
predef ReplaceTileBlock
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ld a, SFX_GO_INSIDE
|
ld a, SFX_GO_INSIDE
|
||||||
jp PlaySound
|
jp PlaySound
|
||||||
.noCardKey
|
.noCardKey
|
||||||
|
@ -20,7 +20,7 @@ DisplayElevatorFloorMenu:
|
|||||||
ld [wListScrollOffset], a
|
ld [wListScrollOffset], a
|
||||||
ret c
|
ret c
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 7, [hl]
|
set BIT_CUR_MAP_USED_ELEVATOR, [hl]
|
||||||
ld hl, wElevatorWarpMaps
|
ld hl, wElevatorWarpMaps
|
||||||
ld a, [wWhichPokemon]
|
ld a, [wWhichPokemon]
|
||||||
add a
|
add a
|
||||||
|
@ -83,7 +83,7 @@ CinnabarGymQuiz_AskQuestion:
|
|||||||
cp c
|
cp c
|
||||||
jr nz, .wrongAnswer
|
jr nz, .wrongAnswer
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ldh a, [hGymGateIndex]
|
ldh a, [hGymGateIndex]
|
||||||
ldh [hBackupGymGateIndex], a
|
ldh [hBackupGymGateIndex], a
|
||||||
ld hl, CinnabarGymQuizCorrectText
|
ld hl, CinnabarGymQuizCorrectText
|
||||||
|
@ -97,7 +97,7 @@ GymTrashScript:
|
|||||||
; Completed the trash can puzzle.
|
; Completed the trash can puzzle.
|
||||||
SetEvent EVENT_2ND_LOCK_OPENED
|
SetEvent EVENT_2ND_LOCK_OPENED
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 6, [hl]
|
set BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
|
|
||||||
tx_pre_id VermilionGymTrashSuccessText3
|
tx_pre_id VermilionGymTrashSuccessText3
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ MainMenu:
|
|||||||
.choseContinue
|
.choseContinue
|
||||||
call DisplayContinueGameInfo
|
call DisplayContinueGameInfo
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
.inputLoop
|
.inputLoop
|
||||||
xor a
|
xor a
|
||||||
ldh [hJoyPressed], a
|
ldh [hJoyPressed], a
|
||||||
|
@ -33,8 +33,8 @@ EnterMap::
|
|||||||
res BIT_NO_NPC_FACE_PLAYER, [hl]
|
res BIT_NO_NPC_FACE_PLAYER, [hl]
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
set 6, [hl]
|
set BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
xor a
|
xor a
|
||||||
ld [wJoyIgnore], a
|
ld [wJoyIgnore], a
|
||||||
|
|
||||||
@ -329,8 +329,8 @@ OverworldLoopLessDelay::
|
|||||||
ld hl, wStatusFlags7
|
ld hl, wStatusFlags7
|
||||||
res BIT_TRAINER_BATTLE, [hl]
|
res BIT_TRAINER_BATTLE, [hl]
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
set 6, [hl]
|
set BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
xor a
|
xor a
|
||||||
ldh [hJoyHeld], a
|
ldh [hJoyHeld], a
|
||||||
ld a, [wCurMap]
|
ld a, [wCurMap]
|
||||||
|
@ -184,8 +184,8 @@ StartTrainerBattle::
|
|||||||
|
|
||||||
EndTrainerBattle::
|
EndTrainerBattle::
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
set 6, [hl]
|
set BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
ld hl, wStatusFlags3
|
ld hl, wStatusFlags3
|
||||||
res BIT_PRINT_END_BATTLE_TEXT, [hl]
|
res BIT_PRINT_END_BATTLE_TEXT, [hl]
|
||||||
ld hl, wMiscFlags
|
ld hl, wMiscFlags
|
||||||
|
@ -1593,7 +1593,10 @@ wIsKeyItem:: db
|
|||||||
|
|
||||||
wTextBoxID:: db
|
wTextBoxID:: db
|
||||||
|
|
||||||
wCurrentMapScriptFlags:: db ; not exactly sure what this is used for, but it seems to be used as a multipurpose temp flag value
|
; bit 5: set when maps first load; can be reset to re-run a script
|
||||||
|
; bit 6: set when maps first load; can be reset to re-run a script (used less often than bit 5)
|
||||||
|
; bit 7: set when using an elevator map's menu; triggers the shaking animation
|
||||||
|
wCurrentMapScriptFlags:: db
|
||||||
|
|
||||||
wCurEnemyLevel:: db
|
wCurEnemyLevel:: db
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@ AgathasRoom_Script:
|
|||||||
AgathaShowOrHideExitBlock:
|
AgathaShowOrHideExitBlock:
|
||||||
; Blocks or clears the exit to the next room.
|
; Blocks or clears the exit to the next room.
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_BEAT_AGATHAS_ROOM_TRAINER_0
|
CheckEvent EVENT_BEAT_AGATHAS_ROOM_TRAINER_0
|
||||||
jr z, .blockExitToNextRoom
|
jr z, .blockExitToNextRoom
|
||||||
|
@ -11,8 +11,8 @@ BrunosRoom_Script:
|
|||||||
BrunoShowOrHideExitBlock:
|
BrunoShowOrHideExitBlock:
|
||||||
; Blocks or clears the exit to the next room.
|
; Blocks or clears the exit to the next room.
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_BEAT_BRUNOS_ROOM_TRAINER_0
|
CheckEvent EVENT_BEAT_BRUNOS_ROOM_TRAINER_0
|
||||||
jr z, .blockExitToNextRoom
|
jr z, .blockExitToNextRoom
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
CeladonGym_Script:
|
CeladonGym_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
call nz, .LoadNames
|
call nz, .LoadNames
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, CeladonGymTrainerHeaders
|
ld hl, CeladonGymTrainerHeaders
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
CeladonMartElevator_Script:
|
CeladonMartElevator_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
push hl
|
push hl
|
||||||
call nz, CeladonMartElevatorStoreWarpEntriesScript
|
call nz, CeladonMartElevatorStoreWarpEntriesScript
|
||||||
pop hl
|
pop hl
|
||||||
bit 7, [hl]
|
bit BIT_CUR_MAP_USED_ELEVATOR, [hl]
|
||||||
res 7, [hl]
|
res BIT_CUR_MAP_USED_ELEVATOR, [hl]
|
||||||
call nz, CeladonMartElevatorShakeScript
|
call nz, CeladonMartElevatorShakeScript
|
||||||
xor a
|
xor a
|
||||||
ld [wAutoTextBoxDrawingControl], a
|
ld [wAutoTextBoxDrawingControl], a
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
CeruleanGym_Script:
|
CeruleanGym_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
call nz, .LoadNames
|
call nz, .LoadNames
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, CeruleanGymTrainerHeaders
|
ld hl, CeruleanGymTrainerHeaders
|
||||||
|
@ -7,13 +7,13 @@ CinnabarGym_Script:
|
|||||||
|
|
||||||
CinnabarGymSetMapAndTiles:
|
CinnabarGymSetMapAndTiles:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
push hl
|
push hl
|
||||||
call nz, .LoadNames
|
call nz, .LoadNames
|
||||||
pop hl
|
pop hl
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
call nz, UpdateCinnabarGymGateTileBlocks
|
call nz, UpdateCinnabarGymGateTileBlocks
|
||||||
ResetEvent EVENT_2A7
|
ResetEvent EVENT_2A7
|
||||||
ret
|
ret
|
||||||
@ -170,7 +170,7 @@ CinnabarGymReceiveTM38:
|
|||||||
SetEventRange EVENT_BEAT_CINNABAR_GYM_TRAINER_0, EVENT_BEAT_CINNABAR_GYM_TRAINER_6
|
SetEventRange EVENT_BEAT_CINNABAR_GYM_TRAINER_0, EVENT_BEAT_CINNABAR_GYM_TRAINER_6
|
||||||
|
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
|
|
||||||
jp CinnabarGymResetScripts
|
jp CinnabarGymResetScripts
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
CinnabarIsland_Script:
|
CinnabarIsland_Script:
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ResetEvent EVENT_MANSION_SWITCH_ON
|
ResetEvent EVENT_MANSION_SWITCH_ON
|
||||||
ResetEvent EVENT_LAB_STILL_REVIVING_FOSSIL
|
ResetEvent EVENT_LAB_STILL_REVIVING_FOSSIL
|
||||||
ld hl, CinnabarIsland_ScriptPointers
|
ld hl, CinnabarIsland_ScriptPointers
|
||||||
|
@ -10,8 +10,8 @@ FuchsiaGym_Script:
|
|||||||
|
|
||||||
.LoadNames:
|
.LoadNames:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .CityName
|
ld hl, .CityName
|
||||||
ld de, .LeaderName
|
ld de, .LeaderName
|
||||||
|
@ -8,8 +8,8 @@ GameCorner_Script:
|
|||||||
|
|
||||||
GameCornerSelectLuckySlotMachine:
|
GameCornerSelectLuckySlotMachine:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
ret z
|
ret z
|
||||||
call Random
|
call Random
|
||||||
ldh a, [hRandomAdd]
|
ldh a, [hRandomAdd]
|
||||||
@ -25,8 +25,8 @@ GameCornerSelectLuckySlotMachine:
|
|||||||
|
|
||||||
GameCornerSetRocketHideoutDoorTile:
|
GameCornerSetRocketHideoutDoorTile:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_FOUND_ROCKET_HIDEOUT
|
CheckEvent EVENT_FOUND_ROCKET_HIDEOUT
|
||||||
ret nz
|
ret nz
|
||||||
@ -111,8 +111,8 @@ GameCornerRocketExitScript:
|
|||||||
ld [wMissableObjectIndex], a
|
ld [wMissableObjectIndex], a
|
||||||
predef HideObject
|
predef HideObject
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
set 6, [hl]
|
set BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
ld a, SCRIPT_GAMECORNER_DEFAULT
|
ld a, SCRIPT_GAMECORNER_DEFAULT
|
||||||
ld [wGameCornerCurScript], a
|
ld [wGameCornerCurScript], a
|
||||||
ret
|
ret
|
||||||
|
@ -2,8 +2,8 @@ IndigoPlateauLobby_Script:
|
|||||||
call Serial_TryEstablishingExternallyClockedConnection
|
call Serial_TryEstablishingExternallyClockedConnection
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
ret z
|
ret z
|
||||||
ResetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
|
ResetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
|
||||||
; Reset Elite Four events if the player started challenging them before
|
; Reset Elite Four events if the player started challenging them before
|
||||||
|
@ -10,8 +10,8 @@ LancesRoom_Script:
|
|||||||
|
|
||||||
LanceShowOrHideEntranceBlocks:
|
LanceShowOrHideEntranceBlocks:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_LANCES_ROOM_LOCK_DOOR
|
CheckEvent EVENT_LANCES_ROOM_LOCK_DOOR
|
||||||
jr nz, .closeEntrance
|
jr nz, .closeEntrance
|
||||||
@ -71,7 +71,7 @@ LancesRoomDefaultScript:
|
|||||||
CheckAndSetEvent EVENT_LANCES_ROOM_LOCK_DOOR
|
CheckAndSetEvent EVENT_LANCES_ROOM_LOCK_DOOR
|
||||||
ret nz
|
ret nz
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ld a, SFX_GO_INSIDE
|
ld a, SFX_GO_INSIDE
|
||||||
call PlaySound
|
call PlaySound
|
||||||
jp LanceShowOrHideEntranceBlocks
|
jp LanceShowOrHideEntranceBlocks
|
||||||
|
@ -11,8 +11,8 @@ LoreleisRoom_Script:
|
|||||||
LoreleiShowOrHideExitBlock:
|
LoreleiShowOrHideExitBlock:
|
||||||
; Blocks or clears the exit to the next room.
|
; Blocks or clears the exit to the next room.
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, wElite4Flags
|
ld hl, wElite4Flags
|
||||||
set BIT_STARTED_ELITE_4, [hl]
|
set BIT_STARTED_ELITE_4, [hl]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
PewterGym_Script:
|
PewterGym_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
call nz, .LoadNames
|
call nz, .LoadNames
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, PewterGymTrainerHeaders
|
ld hl, PewterGymTrainerHeaders
|
||||||
|
@ -10,8 +10,8 @@ PokemonMansion1F_Script:
|
|||||||
|
|
||||||
Mansion1CheckReplaceSwitchDoorBlocks:
|
Mansion1CheckReplaceSwitchDoorBlocks:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_MANSION_SWITCH_ON
|
CheckEvent EVENT_MANSION_SWITCH_ON
|
||||||
jr nz, .switchTurnedOn
|
jr nz, .switchTurnedOn
|
||||||
@ -103,7 +103,7 @@ PokemonMansion1FSwitchText:
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ld hl, .PressedText
|
ld hl, .PressedText
|
||||||
call PrintText
|
call PrintText
|
||||||
ld a, SFX_GO_INSIDE
|
ld a, SFX_GO_INSIDE
|
||||||
|
@ -10,8 +10,8 @@ PokemonMansion2F_Script:
|
|||||||
|
|
||||||
Mansion2CheckReplaceSwitchDoorBlocks:
|
Mansion2CheckReplaceSwitchDoorBlocks:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_MANSION_SWITCH_ON
|
CheckEvent EVENT_MANSION_SWITCH_ON
|
||||||
jr nz, .switchTurnedOn
|
jr nz, .switchTurnedOn
|
||||||
@ -108,7 +108,7 @@ PokemonMansion2FSwitchText:
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ld hl, .PressedText
|
ld hl, .PressedText
|
||||||
call PrintText
|
call PrintText
|
||||||
ld a, SFX_GO_INSIDE
|
ld a, SFX_GO_INSIDE
|
||||||
|
@ -10,8 +10,8 @@ PokemonMansion3F_Script:
|
|||||||
|
|
||||||
Mansion3CheckReplaceSwitchDoorBlocks:
|
Mansion3CheckReplaceSwitchDoorBlocks:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_MANSION_SWITCH_ON
|
CheckEvent EVENT_MANSION_SWITCH_ON
|
||||||
jr nz, .switchTurnedOn
|
jr nz, .switchTurnedOn
|
||||||
|
@ -10,8 +10,8 @@ PokemonMansionB1F_Script:
|
|||||||
|
|
||||||
MansionB1FCheckReplaceSwitchDoorBlocks:
|
MansionB1FCheckReplaceSwitchDoorBlocks:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_MANSION_SWITCH_ON
|
CheckEvent EVENT_MANSION_SWITCH_ON
|
||||||
jr nz, .switchTurnedOn
|
jr nz, .switchTurnedOn
|
||||||
|
@ -10,8 +10,8 @@ RocketHideoutB1F_Script:
|
|||||||
|
|
||||||
RocketHideoutB1FDoorCallbackScript:
|
RocketHideoutB1FDoorCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_677
|
CheckEvent EVENT_677
|
||||||
jr nz, .door_open
|
jr nz, .door_open
|
||||||
|
@ -10,8 +10,8 @@ RocketHideoutB4F_Script:
|
|||||||
|
|
||||||
RocketHideoutB4FDoorCallbackScript:
|
RocketHideoutB4FDoorCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEvent EVENT_ROCKET_HIDEOUT_4_DOOR_UNLOCKED
|
CheckEvent EVENT_ROCKET_HIDEOUT_4_DOOR_UNLOCKED
|
||||||
jr nz, .door_already_unlocked
|
jr nz, .door_already_unlocked
|
||||||
@ -67,7 +67,7 @@ RocketHideoutB4FBeatGiovanniScript:
|
|||||||
xor a
|
xor a
|
||||||
ld [wJoyIgnore], a
|
ld [wJoyIgnore], a
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ld a, SCRIPT_ROCKETHIDEOUTB4F_DEFAULT
|
ld a, SCRIPT_ROCKETHIDEOUTB4F_DEFAULT
|
||||||
ld [wRocketHideoutB4FCurScript], a
|
ld [wRocketHideoutB4FCurScript], a
|
||||||
ld [wCurMapScript], a
|
ld [wCurMapScript], a
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
RocketHideoutElevator_Script:
|
RocketHideoutElevator_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
push hl
|
push hl
|
||||||
call nz, RocketHideoutElevatorStoreWarpEntriesScript
|
call nz, RocketHideoutElevatorStoreWarpEntriesScript
|
||||||
pop hl
|
pop hl
|
||||||
bit 7, [hl]
|
bit BIT_CUR_MAP_USED_ELEVATOR, [hl]
|
||||||
res 7, [hl]
|
res BIT_CUR_MAP_USED_ELEVATOR, [hl]
|
||||||
call nz, RocketHideoutElevatorShakeScript
|
call nz, RocketHideoutElevatorShakeScript
|
||||||
xor a
|
xor a
|
||||||
ld [wAutoTextBoxDrawingControl], a
|
ld [wAutoTextBoxDrawingControl], a
|
||||||
|
@ -7,8 +7,8 @@ Route23_Script:
|
|||||||
|
|
||||||
Route23SetVictoryRoadBoulders:
|
Route23SetVictoryRoadBoulders:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
ret z
|
ret z
|
||||||
ResetEvents EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1, EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2
|
ResetEvents EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1, EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2
|
||||||
ResetEvents EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1, EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH2
|
ResetEvents EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1, EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH2
|
||||||
|
@ -10,8 +10,8 @@ Route25_Script:
|
|||||||
|
|
||||||
Route25ShowHideBillScript:
|
Route25ShowHideBillScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEventHL EVENT_LEFT_BILLS_HOUSE_AFTER_HELPING
|
CheckEventHL EVENT_LEFT_BILLS_HOUSE_AFTER_HELPING
|
||||||
ret nz
|
ret nz
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
SaffronGym_Script:
|
SaffronGym_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
call nz, .LoadNames
|
call nz, .LoadNames
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, SaffronGymTrainerHeaders
|
ld hl, SaffronGymTrainerHeaders
|
||||||
|
@ -10,8 +10,8 @@ SilphCo10F_Script:
|
|||||||
|
|
||||||
SilphCo10FGateCallbackScript:
|
SilphCo10FGateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .GateCoordinates
|
ld hl, .GateCoordinates
|
||||||
call SilphCo2F_SetCardKeyDoorYScript
|
call SilphCo2F_SetCardKeyDoorYScript
|
||||||
|
@ -10,8 +10,8 @@ SilphCo11F_Script:
|
|||||||
|
|
||||||
SilphCo11FGateCallbackScript:
|
SilphCo11FGateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, SilphCo11GateCoords
|
ld hl, SilphCo11GateCoords
|
||||||
call SilphCo11F_SetCardKeyDoorYScript
|
call SilphCo11F_SetCardKeyDoorYScript
|
||||||
|
@ -10,8 +10,8 @@ SilphCo2F_Script:
|
|||||||
|
|
||||||
SilphCo2FGateCallbackScript:
|
SilphCo2FGateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .GateCoordinates
|
ld hl, .GateCoordinates
|
||||||
call SilphCo2F_SetCardKeyDoorYScript
|
call SilphCo2F_SetCardKeyDoorYScript
|
||||||
|
@ -10,8 +10,8 @@ SilphCo3F_Script:
|
|||||||
|
|
||||||
SilphCo3FGateCallbackScript:
|
SilphCo3FGateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .GateCoordinates
|
ld hl, .GateCoordinates
|
||||||
call SilphCo2F_SetCardKeyDoorYScript
|
call SilphCo2F_SetCardKeyDoorYScript
|
||||||
|
@ -10,8 +10,8 @@ SilphCo4F_Script:
|
|||||||
|
|
||||||
SilphCo4FGateCallbackScript:
|
SilphCo4FGateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .GateCoordinates
|
ld hl, .GateCoordinates
|
||||||
call SilphCo4F_SetCardKeyDoorYScript
|
call SilphCo4F_SetCardKeyDoorYScript
|
||||||
|
@ -10,8 +10,8 @@ SilphCo5F_Script:
|
|||||||
|
|
||||||
SilphCo5FGateCallbackScript:
|
SilphCo5FGateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .GateCoordinates
|
ld hl, .GateCoordinates
|
||||||
call SilphCo4F_SetCardKeyDoorYScript
|
call SilphCo4F_SetCardKeyDoorYScript
|
||||||
|
@ -10,8 +10,8 @@ SilphCo6F_Script:
|
|||||||
|
|
||||||
SilphCo6F_GateCallbackScript:
|
SilphCo6F_GateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .GateCoordinates
|
ld hl, .GateCoordinates
|
||||||
call SilphCo4F_SetCardKeyDoorYScript
|
call SilphCo4F_SetCardKeyDoorYScript
|
||||||
|
@ -10,8 +10,8 @@ SilphCo7F_Script:
|
|||||||
|
|
||||||
SilphCo7F_GateCallbackScript:
|
SilphCo7F_GateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .GateCoordinates
|
ld hl, .GateCoordinates
|
||||||
call SilphCo7F_SetCardKeyDoorYScript
|
call SilphCo7F_SetCardKeyDoorYScript
|
||||||
|
@ -10,8 +10,8 @@ SilphCo8F_Script:
|
|||||||
|
|
||||||
SilphCo8FGateCallbackScript:
|
SilphCo8FGateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .GateCoordinates
|
ld hl, .GateCoordinates
|
||||||
call SilphCo8F_SetCardKeyDoorYScript
|
call SilphCo8F_SetCardKeyDoorYScript
|
||||||
|
@ -10,8 +10,8 @@ SilphCo9F_Script:
|
|||||||
|
|
||||||
SilphCo9FGateCallbackScript:
|
SilphCo9FGateCallbackScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
ld hl, .GateCoordinates
|
ld hl, .GateCoordinates
|
||||||
call SilphCo9F_SetCardKeyDoorYScript
|
call SilphCo9F_SetCardKeyDoorYScript
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
SilphCoElevator_Script:
|
SilphCoElevator_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
push hl
|
push hl
|
||||||
call nz, SilphCoElevatorStoreWarpEntriesScript
|
call nz, SilphCoElevatorStoreWarpEntriesScript
|
||||||
pop hl
|
pop hl
|
||||||
bit 7, [hl]
|
bit BIT_CUR_MAP_USED_ELEVATOR, [hl]
|
||||||
res 7, [hl]
|
res BIT_CUR_MAP_USED_ELEVATOR, [hl]
|
||||||
call nz, SilphCoElevatorShakeScript
|
call nz, SilphCoElevatorShakeScript
|
||||||
xor a
|
xor a
|
||||||
ld [wAutoTextBoxDrawingControl], a
|
ld [wAutoTextBoxDrawingControl], a
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
VermilionCity_Script:
|
VermilionCity_Script:
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
push hl
|
push hl
|
||||||
call nz, VermilionCityLeftSSAnneCallbackScript
|
call nz, VermilionCityLeftSSAnneCallbackScript
|
||||||
pop hl
|
pop hl
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
call nz, .setFirstLockTrashCanIndex
|
call nz, .setFirstLockTrashCanIndex
|
||||||
ld hl, VermilionCity_ScriptPointers
|
ld hl, VermilionCity_ScriptPointers
|
||||||
ld a, [wVermilionCityCurScript]
|
ld a, [wVermilionCityCurScript]
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
VermilionGym_Script:
|
VermilionGym_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
push hl
|
push hl
|
||||||
call nz, .LoadNames
|
call nz, .LoadNames
|
||||||
pop hl
|
pop hl
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
call nz, VermilionGymSetDoorTile
|
call nz, VermilionGymSetDoorTile
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, VermilionGymTrainerHeaders
|
ld hl, VermilionGymTrainerHeaders
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
VictoryRoad1F_Script:
|
VictoryRoad1F_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
call nz, .next
|
call nz, .next
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, VictoryRoad1TrainerHeaders
|
ld hl, VictoryRoad1TrainerHeaders
|
||||||
@ -31,7 +31,7 @@ VictoryRoad1FDefaultScript:
|
|||||||
call CheckBoulderCoords
|
call CheckBoulderCoords
|
||||||
jp nc, CheckFightingMapTrainers
|
jp nc, CheckFightingMapTrainers
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
SetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
|
SetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
VictoryRoad2F_Script:
|
VictoryRoad2F_Script:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
res 6, [hl]
|
res BIT_CUR_MAP_LOADED_2, [hl]
|
||||||
call nz, VictoryRoad2FResetBoulderEventScript
|
call nz, VictoryRoad2FResetBoulderEventScript
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
call nz, VictoryRoad2FCheckBoulderEventScript
|
call nz, VictoryRoad2FCheckBoulderEventScript
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, VictoryRoad2TrainerHeaders
|
ld hl, VictoryRoad2TrainerHeaders
|
||||||
@ -60,7 +60,7 @@ VictoryRoad2FDefaultScript:
|
|||||||
ret nz
|
ret nz
|
||||||
.set_script_flag
|
.set_script_flag
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.SwitchCoords:
|
.SwitchCoords:
|
||||||
|
@ -10,8 +10,8 @@ VictoryRoad3F_Script:
|
|||||||
|
|
||||||
VictoryRoad3FCheckBoulderEventScript:
|
VictoryRoad3FCheckBoulderEventScript:
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
res 5, [hl]
|
res BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
ret z
|
ret z
|
||||||
CheckEventHL EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
|
CheckEventHL EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
|
||||||
ret z
|
ret z
|
||||||
@ -38,7 +38,7 @@ VictoryRoad3FDefaultScript:
|
|||||||
cp $1
|
cp $1
|
||||||
jr nz, .handle_hole
|
jr nz, .handle_hole
|
||||||
ld hl, wCurrentMapScriptFlags
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set BIT_CUR_MAP_LOADED_1, [hl]
|
||||||
SetEvent EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
|
SetEvent EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
|
||||||
ret
|
ret
|
||||||
.handle_hole
|
.handle_hole
|
||||||
|
Loading…
Reference in New Issue
Block a user