mirror of
				https://github.com/thornAvery/jep-hack.git
				synced 2025-11-05 05:10:58 +13:00 
			
		
		
		
	SGB trainer card
This commit is contained in:
		
							parent
							
								
									dc3abbbefd
								
							
						
					
					
						commit
						f470eea6f9
					
				| 
						 | 
					@ -790,6 +790,7 @@ _CGB_UnownPuzzle:
 | 
				
			||||||
_CGB_TrainerCard:
 | 
					_CGB_TrainerCard:
 | 
				
			||||||
	ld a, [wOptions2]
 | 
						ld a, [wOptions2]
 | 
				
			||||||
	and 1 << MENU_ACCOUNT
 | 
						and 1 << MENU_ACCOUNT
 | 
				
			||||||
 | 
						jp z, .TrainercardSGB
 | 
				
			||||||
	ld de, wBGPals1
 | 
						ld de, wBGPals1
 | 
				
			||||||
	xor a ; CHRIS
 | 
						xor a ; CHRIS
 | 
				
			||||||
	call GetTrainerPalettePointer
 | 
						call GetTrainerPalettePointer
 | 
				
			||||||
| 
						 | 
					@ -911,9 +912,32 @@ _CGB_TrainerCard:
 | 
				
			||||||
.BadgePalettes:
 | 
					.BadgePalettes:
 | 
				
			||||||
INCLUDE "gfx/trainer_card/badges.pal"
 | 
					INCLUDE "gfx/trainer_card/badges.pal"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.TrainercardSGB:
 | 
				
			||||||
 | 
						ld a, PREDEFPAL_DIPLOMA ; Gen 1 Human Palette (Do we want to do something per gender with this?)
 | 
				
			||||||
 | 
						call GetPredefPal
 | 
				
			||||||
 | 
						ld de, wBGPals1 
 | 
				
			||||||
 | 
					; Copy 8 BG palettes
 | 
				
			||||||
 | 
						ld b, 8
 | 
				
			||||||
 | 
					.bg_loop
 | 
				
			||||||
 | 
						push hl
 | 
				
			||||||
 | 
						call LoadHLPaletteIntoDE
 | 
				
			||||||
 | 
						pop hl
 | 
				
			||||||
 | 
						dec b
 | 
				
			||||||
 | 
						jr nz, .bg_loop
 | 
				
			||||||
 | 
					; Copy 8 OB palettes
 | 
				
			||||||
 | 
						ld b, 8
 | 
				
			||||||
 | 
					.ob_loop
 | 
				
			||||||
 | 
						push hl
 | 
				
			||||||
 | 
						call LoadHLPaletteIntoDE
 | 
				
			||||||
 | 
						pop hl
 | 
				
			||||||
 | 
						dec b
 | 
				
			||||||
 | 
						jr nz, .ob_loop
 | 
				
			||||||
 | 
						ret
 | 
				
			||||||
 | 
					
 | 
				
			||||||
_CGB_TrainerCardKanto:
 | 
					_CGB_TrainerCardKanto:
 | 
				
			||||||
	ld a, [wOptions2]
 | 
						ld a, [wOptions2]
 | 
				
			||||||
	and 1 << MENU_ACCOUNT
 | 
						and 1 << MENU_ACCOUNT
 | 
				
			||||||
 | 
						jp z, .TrainercardSGB2
 | 
				
			||||||
	ld de, wBGPals1
 | 
						ld de, wBGPals1
 | 
				
			||||||
	xor a ; CHRIS & MISTY
 | 
						xor a ; CHRIS & MISTY
 | 
				
			||||||
	call GetTrainerPalettePointer
 | 
						call GetTrainerPalettePointer
 | 
				
			||||||
| 
						 | 
					@ -1035,6 +1059,28 @@ _CGB_TrainerCardKanto:
 | 
				
			||||||
.KantoBadgePalettes:
 | 
					.KantoBadgePalettes:
 | 
				
			||||||
INCLUDE "gfx/trainer_card/kanto_badges.pal"
 | 
					INCLUDE "gfx/trainer_card/kanto_badges.pal"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.TrainercardSGB2:
 | 
				
			||||||
 | 
						ld a, PREDEFPAL_DIPLOMA ; Gen 1 Human Palette (Do we want to do something per gender with this?)
 | 
				
			||||||
 | 
						call GetPredefPal
 | 
				
			||||||
 | 
						ld de, wBGPals1 
 | 
				
			||||||
 | 
					; Copy 8 BG palettes
 | 
				
			||||||
 | 
						ld b, 8
 | 
				
			||||||
 | 
					.bg_loop
 | 
				
			||||||
 | 
						push hl
 | 
				
			||||||
 | 
						call LoadHLPaletteIntoDE
 | 
				
			||||||
 | 
						pop hl
 | 
				
			||||||
 | 
						dec b
 | 
				
			||||||
 | 
						jr nz, .bg_loop
 | 
				
			||||||
 | 
					; Copy 8 OB palettes
 | 
				
			||||||
 | 
						ld b, 8
 | 
				
			||||||
 | 
					.ob_loop
 | 
				
			||||||
 | 
						push hl
 | 
				
			||||||
 | 
						call LoadHLPaletteIntoDE
 | 
				
			||||||
 | 
						pop hl
 | 
				
			||||||
 | 
						dec b
 | 
				
			||||||
 | 
						jr nz, .ob_loop
 | 
				
			||||||
 | 
						ret
 | 
				
			||||||
 | 
					
 | 
				
			||||||
_CGB_MoveList:
 | 
					_CGB_MoveList:
 | 
				
			||||||
	ld de, wBGPals1
 | 
						ld de, wBGPals1
 | 
				
			||||||
	ld a, PREDEFPAL_GOLDENROD
 | 
						ld a, PREDEFPAL_GOLDENROD
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue