mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
Colored Badges
This commit is contained in:
parent
1f1f59874e
commit
67790a0e73
6 changed files with 51 additions and 20 deletions
|
|
@ -777,9 +777,10 @@ _CGB_TrainerCard:
|
|||
ld a, PRYCE
|
||||
call GetTrainerPalettePointer
|
||||
call LoadPalette_White_Col1_Col2_Black
|
||||
ld a, PREDEFPAL_CGB_BADGE
|
||||
call GetPredefPal
|
||||
call LoadHLPaletteIntoDE
|
||||
ld hl, .BadgePalettes
|
||||
ld bc, 8 palettes
|
||||
ld a, BANK(wOBPals1)
|
||||
call FarCopyWRAM
|
||||
|
||||
; fill screen with gender-based palette for the card border
|
||||
hlcoord 0, 0, wAttrmap
|
||||
|
|
@ -868,6 +869,9 @@ _CGB_TrainerCard:
|
|||
ld a, TRUE
|
||||
ldh [hCGBPalUpdate], a
|
||||
ret
|
||||
|
||||
.BadgePalettes:
|
||||
INCLUDE "gfx/trainer_card/badges.pal"
|
||||
|
||||
_CGB_TrainerCardKanto:
|
||||
ld a, [wOptions2]
|
||||
|
|
@ -897,9 +901,10 @@ _CGB_TrainerCardKanto:
|
|||
ld a, BLUE
|
||||
call GetTrainerPalettePointer
|
||||
call LoadPalette_White_Col1_Col2_Black
|
||||
ld a, PREDEFPAL_CGB_BADGE
|
||||
call GetPredefPal
|
||||
call LoadHLPaletteIntoDE
|
||||
ld hl, .KantoBadgePalettes
|
||||
ld bc, 8 palettes
|
||||
ld a, BANK(wOBPals1)
|
||||
call FarCopyWRAM
|
||||
|
||||
; fill screen with gender-based palette for the card border
|
||||
hlcoord 0, 0, wAttrmap
|
||||
|
|
@ -988,6 +993,9 @@ _CGB_TrainerCardKanto:
|
|||
ld a, TRUE
|
||||
ldh [hCGBPalUpdate], a
|
||||
ret
|
||||
|
||||
.KantoBadgePalettes:
|
||||
INCLUDE "gfx/trainer_card/kanto_badges.pal"
|
||||
|
||||
_CGB_MoveList:
|
||||
ld de, wBGPals1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue