shithub: pokecrystal

Download patch

ref: 0dd5f7ab7a141698e19078653d89b704993c87ba
parent: b609a1690d49bc7fa6016f4db8a3ee5450ad780c
author: YamaArashi <shadow962@live.com>
date: Sat Jan 9 14:56:37 EST 2016

pokedex palette numbers

--- a/constants/cgb_constants.asm
+++ b/constants/cgb_constants.asm
@@ -15,13 +15,13 @@
 	const SCGB_0D
 	const SCGB_0E
 	const SCGB_0F
-	const SCGB_10
+	const SCGB_POKEDEX_SEARCH_OPTION
 	const SCGB_11
 	const SCGB_12
 	const SCGB_13
 	const SCGB_PACKPALS
 	const SCGB_TRAINER_CARD
-	const SCGB_16
+	const SCGB_POKEDEX_UNOWN_MODE
 	const SCGB_17
 	const SCGB_18
 	const SCGB_19
--- a/engine/pokedex.asm
+++ b/engine/pokedex.asm
@@ -501,7 +501,7 @@
 	ld [wDexArrowCursorPosIndex], a
 	call Pokedex_DisplayModeDescription
 	call WaitBGMap
-	ld a, $10
+	ld a, SCGB_POKEDEX_SEARCH_OPTION
 	call Pokedex_GetSGBLayout
 	call Pokedex_IncrementDexPointer
 	ret
@@ -609,7 +609,7 @@
 	ld [wDexSearchSlowpokeFrame], a
 	callba DoDexSearchSlowpokeFrame
 	call WaitBGMap
-	ld a, $10
+	ld a, SCGB_POKEDEX_SEARCH_OPTION
 	call Pokedex_GetSGBLayout
 	call Pokedex_IncrementDexPointer
 	ret
@@ -788,7 +788,7 @@
 	call Pokedex_UnownModePlaceCursor
 	callba PrintUnownWord
 	call WaitBGMap
-	ld a, $16
+	ld a, SCGB_POKEDEX_UNOWN_MODE
 	call Pokedex_GetSGBLayout
 	call Pokedex_IncrementDexPointer
 	ret
--- a/predef/cgb.asm
+++ b/predef/cgb.asm
@@ -49,13 +49,13 @@
 	dw _CGB0d
 	dw _CGB0e
 	dw _CGB0f
-	dw _CGB10
+	dw _CGB_PokedexSearchOption
 	dw _CGB11
 	dw _CGB12
 	dw _CGB13
 	dw _CGB_PackPals
 	dw _CGB_TrainerCard
-	dw _CGB16
+	dw _CGB_PokedexUnownMode
 	dw _CGB17
 	dw _CGB18
 	dw _CGB19
@@ -389,7 +389,7 @@
 	RGB 00, 00, 00
 ; 903e
 
-_CGB16: ; 903e
+_CGB_PokedexUnownMode: ; 903e
 	ld de, UnknBGPals
 	ld a, $1d
 	call GetPredefPal
@@ -822,7 +822,7 @@
 	ret
 ; 93ba
 
-_CGB10: ; 93ba
+_CGB_PokedexSearchOption: ; 93ba
 	ld de, UnknBGPals
 	ld a, $1d
 	call GetPredefPal
--- a/predef/sgb.asm
+++ b/predef/sgb.asm
@@ -40,13 +40,13 @@
 	dw .SGB0d
 	dw .SGB0e
 	dw .SGB0f
-	dw .SGB10
+	dw .SGB_PokedexSearchOption
 	dw .SGB11
 	dw .SGB12
 	dw .SGB13
 	dw .SGB_PackPals
 	dw .SGB_TrainerCard
-	dw .SGB16
+	dw .SGB_PokedexUnownMode
 	dw .SGB17
 	dw .SGB18
 	dw .SGB19
@@ -266,13 +266,13 @@
 	ret
 ; 8823
 
-.SGB16: ; 8823
+.SGB_PokedexUnownMode: ; 8823
 	call .SGB_Pokedex
 	ld de, BlkPacket_9af6
 	ret
 ; 882a
 
-.SGB10: ; 882a
+.SGB_PokedexSearchOption: ; 882a
 	ld hl, PalPacket_9ce6
 	ld de, wSGBPals
 	ld bc, $10