SGB Morning Palette Infrastructure

Does not include proper morning palettes yet, but will be easy to set up.
This commit is contained in:
Zeta_Null 2024-10-29 19:22:02 -04:00
parent 2eec67d7fd
commit d5d8fe40d7
3 changed files with 72 additions and 13 deletions

View file

@ -613,19 +613,20 @@ _CGB_MapPals:
call .LoadHLColorIntoDE
jr .bg_done
.bg_morn_day
ld a, [wTimeOfDayPal]
cp MORN_F
jr nz, .bg_day
call .LoadHLColorIntoDE
inc hl
inc hl
call .LoadHLColorIntoDE
dec hl
dec hl
call .LoadHLColorIntoDE
call .LoadHLColorIntoDE
jr .bg_done
.bg_day
; Lot of commented out code for spaceworld-style mornings.
; ld a, [wTimeOfDayPal]
; cp MORN_F
; jr nz, .bg_day
; call .LoadHLColorIntoDE
; inc hl
; inc hl
; call .LoadHLColorIntoDE
; dec hl
; dec hl
; call .LoadHLColorIntoDE
; call .LoadHLColorIntoDE
; jr .bg_done
;.bg_day
call LoadHLPaletteIntoDE
jr .bg_done

View file

@ -541,6 +541,18 @@ endr
jr z, .gate
;cp FOREST
;jr z, .route
ld a, [wTimeOfDayPal]
cp MORN_F
jr nz, .only_day
ld a, [wMapGroup]
ld e, a
ld d, 0
ld hl, MapGroupRoofSGBPalIndsMorn
add hl, de
ld a, [hl]
ret
.only_day
ld a, [wMapGroup]
ld e, a
ld d, 0