daynight dungeon map fix

This commit is contained in:
scawful
2024-05-02 01:44:57 -04:00
parent fe9a995495
commit d51a1818a9

View File

@@ -493,6 +493,36 @@ FixShockPalette:
RTL RTL
} }
FixDungeonMapColors:
{
PHA
; Cache the current time
LDA $7EE000 : STA $7EF900
LDA $7EE001 : STA $7EF901
; Set the time to 8:00am while map is open
LDA #$08 : STA $7EE000
LDA #$00 : STA $7EE001
PLA
STA $7EC229
RTL
}
RestoreTimeForDungeonMap:
{
; Restore the time
LDA $7EF900 : STA $7EE000
LDA $7EF901 : STA $7EE001
LDA.l $7EC017
RTL
}
org $0ED956
JSL FixDungeonMapColors
org $0AEFA6
JSL RestoreTimeForDungeonMap
org $0ABA5A org $0ABA5A
JSL FixShockPalette JSL FixShockPalette