Refactor day/night system to support ZS_CUSTOM_OW_V2 flag

This commit is contained in:
scawful
2024-08-16 11:28:41 -04:00
parent 94a134246e
commit ece1dfa7d7

View File

@@ -407,7 +407,9 @@ SubAreasFix:
{ {
STA.l !pal_color STA.l !pal_color
PHX PHX
JSL ColorSubEffect REP #$20
JSL ColorSubEffect
SEP #$20
PLX PLX
STA $7EC300 STA $7EC300
STA $7EC340 STA $7EC340
@@ -471,11 +473,7 @@ org $02AE92
; org $0BFEB6 VANILLA DAY/NIGHT HOOK ; org $0BFEB6 VANILLA DAY/NIGHT HOOK
; ZS OW - ReplaceBGColor ; ZS OW - ReplaceBGColor
if ZS_CUSTOM_OW_V2 = 1 if ZS_CUSTOM_OW_V2 = 0
org $28960B
; TODO: Implement custom background color for ZS OW V2
NOP #8
else
org $2886B4 org $2886B4
STA !pal_color STA !pal_color
JSL BackgroundFix JSL BackgroundFix
@@ -484,7 +482,7 @@ endif
; ZS OW - CheckForChangeGraphicsTransitionLoad ; ZS OW - CheckForChangeGraphicsTransitionLoad
if ZS_CUSTOM_OW_V2 = 1 if ZS_CUSTOM_OW_V2 = 1
org $2893FD ; V1 $2885F9 org $2893FD
JSL SubAreasFix JSL SubAreasFix
else else
org $2885F9 org $2885F9