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 some time-related data
This commit is contained in:
@@ -270,7 +270,7 @@ StartTrainerBattle_Flash:
|
||||
|
||||
.DoFlashAnimation:
|
||||
ld a, [wTimeOfDayPalset]
|
||||
cp %11111111 ; dark cave
|
||||
cp DARKNESS_PALSET
|
||||
jr z, .done
|
||||
ld hl, wcf64
|
||||
ld a, [hl]
|
||||
@@ -651,13 +651,13 @@ StartTrainerBattle_LoadPokeBallGraphics:
|
||||
jr .nextscene
|
||||
|
||||
.cgb
|
||||
ld hl, .daypals
|
||||
ld hl, .pals
|
||||
ld a, [wTimeOfDayPal]
|
||||
maskbits NUM_DAYTIMES
|
||||
cp DARKNESS_F
|
||||
jr nz, .daytime
|
||||
ld hl, .nightpals
|
||||
.daytime
|
||||
jr nz, .not_dark
|
||||
ld hl, .darkpals
|
||||
.not_dark
|
||||
ldh a, [rSVBK]
|
||||
push af
|
||||
ld a, BANK(wBGPals1)
|
||||
@@ -702,11 +702,11 @@ StartTrainerBattle_LoadPokeBallGraphics:
|
||||
pop hl
|
||||
ret
|
||||
|
||||
.daypals
|
||||
INCLUDE "gfx/overworld/trainer_battle_day.pal"
|
||||
.pals
|
||||
INCLUDE "gfx/overworld/trainer_battle.pal"
|
||||
|
||||
.nightpals
|
||||
INCLUDE "gfx/overworld/trainer_battle_nite.pal"
|
||||
.darkpals
|
||||
INCLUDE "gfx/overworld/trainer_battle_dark.pal"
|
||||
|
||||
.loadpokeballgfx
|
||||
ld a, [wOtherTrainerClass]
|
||||
|
Reference in New Issue
Block a user