jep-hack/home/time_palettes.asm
Zeta_Null 2f8a41f833 First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
2023-09-10 12:35:35 -04:00

23 lines
302 B
NASM

UpdateTimeAndPals::
; update time and time-sensitive palettes
; rtc enabled?
ld a, [wSpriteUpdatesEnabled]
cp 0
ret z
call UpdateTime
; obj update on?
ld a, [wVramState]
bit 0, a ; obj update
ret z
TimeOfDayPals::
callfar _TimeOfDayPals
ret
UpdateTimePals::
callfar _UpdateTimePals
ret