mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
SGB Morning Palette Infrastructure
Does not include proper morning palettes yet, but will be easy to set up.
This commit is contained in:
parent
2eec67d7fd
commit
d5d8fe40d7
3 changed files with 72 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue