You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Identify more labels, and use the jumptable macro when possible
This commit is contained in:
@@ -224,16 +224,7 @@ ReplaceTimeOfDayPals:
|
||||
dc 3, 2, 1, 0
|
||||
|
||||
GetTimePalette:
|
||||
ld a, [wTimeOfDay]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .TimePalettes
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
jumptable .TimePalettes, wTimeOfDay
|
||||
|
||||
.TimePalettes:
|
||||
dw .MorningPalette
|
||||
|
Reference in New Issue
Block a user