mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
Fix game time labels
This commit is contained in:
parent
1a5a108bdf
commit
28dc5686b0
|
@ -224,12 +224,12 @@ HoFDisplayPlayerStats: ; 70377 (1c:4377)
|
||||||
ld de, HoFPlayTimeText
|
ld de, HoFPlayTimeText
|
||||||
call PlaceString
|
call PlaceString
|
||||||
coord hl, 5, 7
|
coord hl, 5, 7
|
||||||
ld de, wPlayTimeHours + 1
|
ld de, wPlayTimeHours
|
||||||
lb bc, 1, 3
|
lb bc, 1, 3
|
||||||
call PrintNumber
|
call PrintNumber
|
||||||
ld [hl], $6d
|
ld [hl], $6d
|
||||||
inc hl
|
inc hl
|
||||||
ld de, wPlayTimeMinutes + 1
|
ld de, wPlayTimeMinutes
|
||||||
lb bc, LEADING_ZEROES | 1, 2
|
lb bc, LEADING_ZEROES | 1, 2
|
||||||
call PrintNumber
|
call PrintNumber
|
||||||
coord hl, 1, 9
|
coord hl, 1, 9
|
||||||
|
|
|
@ -402,7 +402,7 @@ GymTrashScript: ; 5ddfc (17:5dfc)
|
||||||
.openSecondLock
|
.openSecondLock
|
||||||
; Completed the trash can puzzle.
|
; Completed the trash can puzzle.
|
||||||
SetEvent EVENT_2ND_LOCK_OPENED
|
SetEvent EVENT_2ND_LOCK_OPENED
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
|
|
||||||
tx_pre_id VermilionGymTrashSuccesText3
|
tx_pre_id VermilionGymTrashSuccesText3
|
||||||
|
|
|
@ -199,7 +199,7 @@ CinnabarGymQuiz_1ea92: ; 1ea92 (7:6a92)
|
||||||
ld a, [wCurrentMenuItem]
|
ld a, [wCurrentMenuItem]
|
||||||
cp c
|
cp c
|
||||||
jr nz, .wrongAnswer
|
jr nz, .wrongAnswer
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
ld a, [hGymGateIndex]
|
ld a, [hGymGateIndex]
|
||||||
ld [$ffe0], a
|
ld [$ffe0], a
|
||||||
|
|
|
@ -90,7 +90,7 @@ MainMenu: ; 5af2 (1:5af2)
|
||||||
jp .mainMenuLoop
|
jp .mainMenuLoop
|
||||||
.choseContinue
|
.choseContinue
|
||||||
call DisplayContinueGameInfo
|
call DisplayContinueGameInfo
|
||||||
ld hl,wd126
|
ld hl,wCurrentMapScriptFlags
|
||||||
set 5,[hl]
|
set 5,[hl]
|
||||||
.inputLoop
|
.inputLoop
|
||||||
xor a
|
xor a
|
||||||
|
@ -411,12 +411,12 @@ PrintNumOwnedMons: ; 5e42 (1:5e42)
|
||||||
jp PrintNumber
|
jp PrintNumber
|
||||||
|
|
||||||
PrintPlayTime: ; 5e55 (1:5e55)
|
PrintPlayTime: ; 5e55 (1:5e55)
|
||||||
ld de, wPlayTimeHours + 1
|
ld de, wPlayTimeHours
|
||||||
lb bc, 1, 3
|
lb bc, 1, 3
|
||||||
call PrintNumber
|
call PrintNumber
|
||||||
ld [hl], $6d
|
ld [hl], $6d
|
||||||
inc hl
|
inc hl
|
||||||
ld de, wPlayTimeMinutes + 1
|
ld de, wPlayTimeMinutes
|
||||||
lb bc, LEADING_ZEROES | 1, 2
|
lb bc, LEADING_ZEROES | 1, 2
|
||||||
jp PrintNumber
|
jp PrintNumber
|
||||||
|
|
||||||
|
|
|
@ -601,12 +601,12 @@ DrawTrainerInfo: ; 1349a (4:749a)
|
||||||
ld c,$e3
|
ld c,$e3
|
||||||
call PrintBCDNumber
|
call PrintBCDNumber
|
||||||
coord hl, 9, 6
|
coord hl, 9, 6
|
||||||
ld de,wPlayTimeHours + 1 ; hours
|
ld de,wPlayTimeHours ; hours
|
||||||
lb bc, LEFT_ALIGN | 1, 3
|
lb bc, LEFT_ALIGN | 1, 3
|
||||||
call PrintNumber
|
call PrintNumber
|
||||||
ld [hl],$d6 ; colon tile ID
|
ld [hl],$d6 ; colon tile ID
|
||||||
inc hl
|
inc hl
|
||||||
ld de,wPlayTimeMinutes + 1 ; minutes
|
ld de,wPlayTimeMinutes ; minutes
|
||||||
lb bc, LEADING_ZEROES | 1, 2
|
lb bc, LEADING_ZEROES | 1, 2
|
||||||
jp PrintNumber
|
jp PrintNumber
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ PrintCardKeyText: ; 52673 (14:6673)
|
||||||
.replaceCardKeyDoorTileBlock
|
.replaceCardKeyDoorTileBlock
|
||||||
ld [wNewTileBlockID], a
|
ld [wNewTileBlockID], a
|
||||||
predef ReplaceTileBlock
|
predef ReplaceTileBlock
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
ld a, SFX_GO_INSIDE
|
ld a, SFX_GO_INSIDE
|
||||||
jp PlaySound
|
jp PlaySound
|
||||||
|
|
|
@ -3,7 +3,7 @@ TrackPlayTime: ; 18dee (6:4dee)
|
||||||
ld a, [wd732]
|
ld a, [wd732]
|
||||||
bit 0, a
|
bit 0, a
|
||||||
ret z
|
ret z
|
||||||
ld a, [wPlayTimeMinutes]
|
ld a, [wPlayTimeMaxed]
|
||||||
and a
|
and a
|
||||||
ret nz
|
ret nz
|
||||||
ld a, [wPlayTimeFrames]
|
ld a, [wPlayTimeFrames]
|
||||||
|
@ -20,20 +20,20 @@ TrackPlayTime: ; 18dee (6:4dee)
|
||||||
ret nz
|
ret nz
|
||||||
xor a
|
xor a
|
||||||
ld [wPlayTimeSeconds], a
|
ld [wPlayTimeSeconds], a
|
||||||
ld a, [wPlayTimeMinutes + 1]
|
ld a, [wPlayTimeMinutes]
|
||||||
inc a
|
inc a
|
||||||
ld [wPlayTimeMinutes + 1], a
|
ld [wPlayTimeMinutes], a
|
||||||
cp 60
|
cp 60
|
||||||
ret nz
|
ret nz
|
||||||
xor a
|
xor a
|
||||||
ld [wPlayTimeMinutes + 1], a
|
ld [wPlayTimeMinutes], a
|
||||||
ld a, [wPlayTimeHours + 1]
|
ld a, [wPlayTimeHours]
|
||||||
inc a
|
inc a
|
||||||
ld [wPlayTimeHours + 1], a
|
ld [wPlayTimeHours], a
|
||||||
cp $ff
|
cp $ff
|
||||||
ret nz
|
ret nz
|
||||||
ld a, $ff
|
ld a, $ff
|
||||||
ld [wPlayTimeMinutes], a
|
ld [wPlayTimeMaxed], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
CountDownIgnoreInputBitReset: ; 18e36 (6:4e36)
|
CountDownIgnoreInputBitReset: ; 18e36 (6:4e36)
|
||||||
|
|
|
@ -19,7 +19,7 @@ DisplayElevatorFloorMenu: ; 1c9c6 (7:49c6)
|
||||||
ld a, b
|
ld a, b
|
||||||
ld [wListScrollOffset], a
|
ld [wListScrollOffset], a
|
||||||
ret c
|
ret c
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 7, [hl]
|
set 7, [hl]
|
||||||
ld hl, wElevatorWarpMaps
|
ld hl, wElevatorWarpMaps
|
||||||
ld a, [wWhichPokemon]
|
ld a, [wWhichPokemon]
|
||||||
|
|
2
home.asm
2
home.asm
|
@ -2379,7 +2379,7 @@ StartTrainerBattle:: ; 325d (0:325d)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
EndTrainerBattle:: ; 3275 (0:3275)
|
EndTrainerBattle:: ; 3275 (0:3275)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
ld hl, wd72d
|
ld hl, wd72d
|
||||||
|
|
|
@ -32,7 +32,7 @@ EnterMap::
|
||||||
ld hl, wd72d
|
ld hl, wd72d
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
xor a
|
xor a
|
||||||
|
@ -317,7 +317,7 @@ OverworldLoopLessDelay::
|
||||||
res 6,[hl]
|
res 6,[hl]
|
||||||
ld hl,wFlags_D733
|
ld hl,wFlags_D733
|
||||||
res 3,[hl]
|
res 3,[hl]
|
||||||
ld hl,wd126
|
ld hl,wCurrentMapScriptFlags
|
||||||
set 5,[hl]
|
set 5,[hl]
|
||||||
set 6,[hl]
|
set 6,[hl]
|
||||||
xor a
|
xor a
|
||||||
|
|
|
@ -10,7 +10,7 @@ AgathaScript: ; 7642d (1d:642d)
|
||||||
|
|
||||||
AgathaShowOrHideExitBlock: ; 76443 (1d:6443)
|
AgathaShowOrHideExitBlock: ; 76443 (1d:6443)
|
||||||
; Blocks or clears the exit to the next room.
|
; Blocks or clears the exit to the next room.
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -10,7 +10,7 @@ BrunoScript: ; 762d6 (1d:62d6)
|
||||||
|
|
||||||
BrunoShowOrHideExitBlock: ; 762ec (1d:62ec)
|
BrunoShowOrHideExitBlock: ; 762ec (1d:62ec)
|
||||||
; Blocks or clears the exit to the next room.
|
; Blocks or clears the exit to the next room.
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -7,7 +7,7 @@ CeladonGameCornerScript: ; 48bbd (12:4bbd)
|
||||||
jp CallFunctionInTable
|
jp CallFunctionInTable
|
||||||
|
|
||||||
CeladonGameCornerScript_48bcf: ; 48bcf (12:4bcf)
|
CeladonGameCornerScript_48bcf: ; 48bcf (12:4bcf)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
@ -24,7 +24,7 @@ CeladonGameCornerScript_48bcf: ; 48bcf (12:4bcf)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
CeladonGameCornerScript_48bec: ; 48bec (12:4bec)
|
CeladonGameCornerScript_48bec: ; 48bec (12:4bec)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
@ -109,7 +109,7 @@ CeladonGameCornerScript2: ; 48c69 (12:4c69)
|
||||||
ld a, HS_GAME_CORNER_ROCKET
|
ld a, HS_GAME_CORNER_ROCKET
|
||||||
ld [wMissableObjectIndex], a
|
ld [wMissableObjectIndex], a
|
||||||
predef HideObject
|
predef HideObject
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
ld a, $0
|
ld a, $0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
CeladonGymScript: ; 4890a (12:490a)
|
CeladonGymScript: ; 4890a (12:490a)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
call nz, CeladonGymScript_48927
|
call nz, CeladonGymScript_48927
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
CeladonMartElevatorScript: ; 48600 (12:4600)
|
CeladonMartElevatorScript: ; 48600 (12:4600)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
push hl
|
push hl
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
CeruleanGymScript: ; 5c6b3 (17:46b3)
|
CeruleanGymScript: ; 5c6b3 (17:46b3)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
call nz, CeruleanGymScript_5c6d0
|
call nz, CeruleanGymScript_5c6d0
|
||||||
|
|
|
@ -6,7 +6,7 @@ CinnabarGymScript: ; 7574a (1d:574a)
|
||||||
jp CallFunctionInTable
|
jp CallFunctionInTable
|
||||||
|
|
||||||
CinnabarGymScript_75759: ; 75759 (1d:5759)
|
CinnabarGymScript_75759: ; 75759 (1d:5759)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
push hl
|
push hl
|
||||||
|
@ -165,7 +165,7 @@ CinnabarGymScript3_75857: ; 75857 (1d:5857)
|
||||||
; deactivate gym trainers
|
; deactivate gym trainers
|
||||||
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, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
|
|
||||||
jp CinnabarGymScript_75792
|
jp CinnabarGymScript_75792
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
CinnabarIslandScript: ; 1ca19 (7:4a19)
|
CinnabarIslandScript: ; 1ca19 (7:4a19)
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
ResetEvent EVENT_MANSION_SWITCH_ON
|
ResetEvent EVENT_MANSION_SWITCH_ON
|
||||||
ResetEvent EVENT_LAB_STILL_REVIVING_FOSSIL
|
ResetEvent EVENT_LAB_STILL_REVIVING_FOSSIL
|
||||||
|
|
|
@ -9,7 +9,7 @@ FuchsiaGymScript: ; 7543d (1d:543d)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
FuchsiaGymScript_75453: ; 75453 (1d:5453)
|
FuchsiaGymScript_75453: ; 75453 (1d:5453)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
IndigoPlateauLobbyScript: ; 19c5b (6:5c5b)
|
IndigoPlateauLobbyScript: ; 19c5b (6:5c5b)
|
||||||
call Serial_TryEstablishingExternallyClockedConnection
|
call Serial_TryEstablishingExternallyClockedConnection
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ LanceScript: ; 5a2ae (16:62ae)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
LanceShowOrHideEntranceBlocks: ; 5a2c4 (16:62c4)
|
LanceShowOrHideEntranceBlocks: ; 5a2c4 (16:62c4)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
@ -71,7 +71,7 @@ LanceScript0: ; 5a305 (16:6305)
|
||||||
jr z, WalkToLance
|
jr z, WalkToLance
|
||||||
CheckAndSetEvent EVENT_LANCES_ROOM_LOCK_DOOR
|
CheckAndSetEvent EVENT_LANCES_ROOM_LOCK_DOOR
|
||||||
ret nz
|
ret nz
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
ld a, SFX_GO_INSIDE
|
ld a, SFX_GO_INSIDE
|
||||||
call PlaySound
|
call PlaySound
|
||||||
|
|
|
@ -10,7 +10,7 @@ LoreleiScript: ; 7617b (1d:617b)
|
||||||
|
|
||||||
LoreleiShowOrHideExitBlock: ; 76191 (1d:6191)
|
LoreleiShowOrHideExitBlock: ; 76191 (1d:6191)
|
||||||
; Blocks or clears the exit to the next room.
|
; Blocks or clears the exit to the next room.
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ Mansion1Script: ; 442af (11:42af)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Mansion1Subscript1: ; 442c5 (11:42c5)
|
Mansion1Subscript1: ; 442c5 (11:42c5)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
@ -106,7 +106,7 @@ Mansion1Text4: ; 4435a (11:435a)
|
||||||
jr nz, .asm_4438c
|
jr nz, .asm_4438c
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
ld hl, MansionSwitchPressedText
|
ld hl, MansionSwitchPressedText
|
||||||
call PrintText
|
call PrintText
|
||||||
|
|
|
@ -9,7 +9,7 @@ Mansion2Script: ; 51fd8 (14:5fd8)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Mansion2Script_51fee: ; 51fee (14:5fee)
|
Mansion2Script_51fee: ; 51fee (14:5fee)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
@ -112,7 +112,7 @@ Mansion2Text5: ; 52087 (14:6087)
|
||||||
jr nz, .asm_520b9
|
jr nz, .asm_520b9
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
ld hl, Mansion2Text_520c7
|
ld hl, Mansion2Text_520c7
|
||||||
call PrintText
|
call PrintText
|
||||||
|
|
|
@ -9,7 +9,7 @@ Mansion3Script: ; 521ee (14:61ee)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Mansion3Script_52204: ; 52204 (14:6204)
|
Mansion3Script_52204: ; 52204 (14:6204)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ Mansion4Script: ; 523b9 (14:63b9)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Mansion4Script_523cf: ; 523cf (14:63cf)
|
Mansion4Script_523cf: ; 523cf (14:63cf)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
PewterGymScript: ; 5c387 (17:4387)
|
PewterGymScript: ; 5c387 (17:4387)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
call nz, PewterGymScript_5c3a4
|
call nz, PewterGymScript_5c3a4
|
||||||
|
|
|
@ -9,7 +9,7 @@ RocketHideout1Script: ; 44bca (11:4bca)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
RocketHideout1Script_44be0: ; 44be0 (11:4be0)
|
RocketHideout1Script_44be0: ; 44be0 (11:4be0)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ RocketHideout4Script: ; 4545d (11:545d)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
RocketHideout4Script_45473: ; 45473 (11:5473)
|
RocketHideout4Script_45473: ; 45473 (11:5473)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
@ -65,7 +65,7 @@ RocketHideout4Script3: ; 454b6 (11:54b6)
|
||||||
call GBFadeInFromBlack
|
call GBFadeInFromBlack
|
||||||
xor a
|
xor a
|
||||||
ld [wJoyIgnore], a
|
ld [wJoyIgnore], a
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [wRocketHideout4CurScript], a
|
ld [wRocketHideout4CurScript], a
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
RocketHideoutElevatorScript: ; 45710 (11:5710)
|
RocketHideoutElevatorScript: ; 45710 (11:5710)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
push hl
|
push hl
|
||||||
|
|
|
@ -6,7 +6,7 @@ Route23Script: ; 511da (14:51da)
|
||||||
jp CallFunctionInTable
|
jp CallFunctionInTable
|
||||||
|
|
||||||
Route23Script_511e9: ; 511e9 (14:51e9)
|
Route23Script_511e9: ; 511e9 (14:51e9)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ Route25Script: ; 515cb (14:55cb)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Route25Script_515e1: ; 515e1 (14:55e1)
|
Route25Script_515e1: ; 515e1 (14:55e1)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SaffronGymScript: ; 5d00d (17:500d)
|
SaffronGymScript: ; 5d00d (17:500d)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
call nz, .extra
|
call nz, .extra
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo10Script: ; 5a139 (16:6139)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo10Script_5a14f: ; 5a14f (16:614f)
|
SilphCo10Script_5a14f: ; 5a14f (16:614f)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo11Script: ; 620fa (18:60fa)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo11Script_62110: ; 62110 (18:6110)
|
SilphCo11Script_62110: ; 62110 (18:6110)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo2Script: ; 59cf1 (16:5cf1)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo2Script_59d07: ; 59d07 (16:5d07)
|
SilphCo2Script_59d07: ; 59d07 (16:5d07)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo3Script: ; 59f5b (16:5f5b)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo3Script_59f71: ; 59f71 (16:5f71)
|
SilphCo3Script_59f71: ; 59f71 (16:5f71)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo4Script: ; 19d0b (6:5d0b)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo4Script_19d21: ; 19d21 (6:5d21)
|
SilphCo4Script_19d21: ; 19d21 (6:5d21)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo5Script: ; 19f37 (6:5f37)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo5Script_19f4d: ; 19f4d (6:5f4d)
|
SilphCo5Script_19f4d: ; 19f4d (6:5f4d)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo6Script: ; 1a1a9 (6:61a9)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo6Script_1a1bf: ; 1a1bf (6:61bf)
|
SilphCo6Script_1a1bf: ; 1a1bf (6:61bf)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo7Script: ; 51b61 (14:5b61)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo7Script_51b77: ; 51b77 (14:5b77)
|
SilphCo7Script_51b77: ; 51b77 (14:5b77)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo8Script: ; 56504 (15:6504)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo8Script_5651a: ; 5651a (15:651a)
|
SilphCo8Script_5651a: ; 5651a (15:651a)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -9,7 +9,7 @@ SilphCo9Script: ; 5d7bb (17:57bb)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SilphCo9Script_5d7d1: ; 5d7d1 (17:57d1)
|
SilphCo9Script_5d7d1: ; 5d7d1 (17:57d1)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SilphCoElevatorScript: ; 457c0 (11:57c0)
|
SilphCoElevatorScript: ; 457c0 (11:57c0)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
push hl
|
push hl
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
VermilionCityScript: ; 197a1 (6:57a1)
|
VermilionCityScript: ; 197a1 (6:57a1)
|
||||||
call EnableAutoTextBoxDrawing
|
call EnableAutoTextBoxDrawing
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
push hl
|
push hl
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
VermilionGymScript: ; 5ca26 (17:4a26)
|
VermilionGymScript: ; 5ca26 (17:4a26)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
push hl
|
push hl
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
VictoryRoad1Script: ; 5da0a (17:5a0a)
|
VictoryRoad1Script: ; 5da0a (17:5a0a)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
call nz, .next
|
call nz, .next
|
||||||
|
@ -29,7 +29,7 @@ VictoryRoad1Script0: ; 5da40 (17:5a40)
|
||||||
ld hl, CoordsData_5da5c
|
ld hl, CoordsData_5da5c
|
||||||
call CheckBoulderCoords
|
call CheckBoulderCoords
|
||||||
jp nc, CheckFightingMapTrainers
|
jp nc, CheckFightingMapTrainers
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
SetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
|
SetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
|
||||||
ret
|
ret
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
VictoryRoad2Script: ; 5179d (14:579d)
|
VictoryRoad2Script: ; 5179d (14:579d)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 6, [hl]
|
bit 6, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
call nz, VictoryRoad2Script_517c4
|
call nz, VictoryRoad2Script_517c4
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
call nz, VictoryRoad2Script_517c9
|
call nz, VictoryRoad2Script_517c9
|
||||||
|
@ -59,7 +59,7 @@ VictoryRoad2Script0: ; 517f1 (14:57f1)
|
||||||
SetEventReuseHL EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2
|
SetEventReuseHL EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2
|
||||||
ret nz
|
ret nz
|
||||||
.asm_51810
|
.asm_51810
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ VictoryRoad3Script: ; 44980 (11:4980)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
VictoryRoad3Script_44996: ; 44996 (11:4996)
|
VictoryRoad3Script_44996: ; 44996 (11:4996)
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
ret z
|
ret z
|
||||||
|
@ -36,7 +36,7 @@ VictoryRoad3Script0: ; 449b7 (11:49b7)
|
||||||
ld a, [wCoordIndex]
|
ld a, [wCoordIndex]
|
||||||
cp $1
|
cp $1
|
||||||
jr nz, .asm_449dc
|
jr nz, .asm_449dc
|
||||||
ld hl, wd126
|
ld hl, wCurrentMapScriptFlags
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
SetEvent EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
|
SetEvent EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
|
||||||
ret
|
ret
|
||||||
|
|
16
wram.asm
16
wram.asm
|
@ -2118,7 +2118,7 @@ wIsKeyItem:: ; d124
|
||||||
wTextBoxID:: ; d125
|
wTextBoxID:: ; d125
|
||||||
ds 1
|
ds 1
|
||||||
|
|
||||||
wd126:: ds 1 ; not exactly sure what this is used for, but it seems to be used as a multipurpose temp flag value
|
wCurrentMapScriptFlags:: ds 1 ; not exactly sure what this is used for, but it seems to be used as a multipurpose temp flag value
|
||||||
|
|
||||||
wCurEnemyLVL:: ; d127
|
wCurEnemyLVL:: ; d127
|
||||||
ds 1
|
ds 1
|
||||||
|
@ -2308,7 +2308,7 @@ wOptions:: ; d355
|
||||||
ds 1
|
ds 1
|
||||||
|
|
||||||
wObtainedBadges:: ; d356
|
wObtainedBadges:: ; d356
|
||||||
ds 1
|
flag_array 8
|
||||||
|
|
||||||
ds 1
|
ds 1
|
||||||
|
|
||||||
|
@ -3107,12 +3107,14 @@ wCurMapScript:: ; da39
|
||||||
; mostly copied from map-specific map script pointer and wirtten back later
|
; mostly copied from map-specific map script pointer and wirtten back later
|
||||||
ds 1
|
ds 1
|
||||||
|
|
||||||
ds 6
|
ds 7
|
||||||
|
|
||||||
wPlayTimeHours:: ; da40
|
wPlayTimeHours:: ; da41
|
||||||
ds 2
|
ds 1
|
||||||
wPlayTimeMinutes:: ; da42
|
wPlayTimeMaxed:: ; da42
|
||||||
ds 2
|
ds 1
|
||||||
|
wPlayTimeMinutes:: ; da43
|
||||||
|
ds 1
|
||||||
wPlayTimeSeconds:: ; da44
|
wPlayTimeSeconds:: ; da44
|
||||||
ds 1
|
ds 1
|
||||||
wPlayTimeFrames:: ; da45
|
wPlayTimeFrames:: ; da45
|
||||||
|
|
Loading…
Reference in a new issue