mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 00:25:24 +13:00
Random additions because Martha was bored
- Gave the Debug Room its own name and placement on the map, simply being '?????' and up in the top-left corner of Nihon. - Added a feature where the shiny palette of a Pokemon can be seen by pressing Select on the Pokedex screen. - Added preliminary sprites for Belledam, Bipulla, Burgela, Coinpur, Jungela, Pupperon, Stromen, and Tricules. - Added preliminary shiny palettes for Bipulla, Bellignan, Burgela, Coinpur, Jungela and Tricules - Changed Debug Room's layout again slightly - Added another NPC to the Debug Room that gives you a bunch of useful items when spoken to, mainly all of the HMs and Apriballs, plus some Master Balls, Rare Candies and more.
This commit is contained in:
parent
44db4d67ed
commit
7554222e3c
35 changed files with 131 additions and 61 deletions
|
|
@ -271,6 +271,15 @@ _CGB_Pokedex:
|
|||
|
||||
.is_pokemon
|
||||
call GetMonPalettePointer
|
||||
ld a, [wPokedexShinyToggle]
|
||||
and a
|
||||
jr z, .not_shiny
|
||||
; Get shiny palette pointer
|
||||
inc hl
|
||||
inc hl
|
||||
inc hl
|
||||
inc hl
|
||||
.not_shiny
|
||||
call LoadPalette_White_Col1_Col2_Black ; mon palette
|
||||
.got_palette
|
||||
call WipeAttrmap
|
||||
|
|
|
|||
|
|
@ -62,6 +62,9 @@ Pokedex:
|
|||
ld [wLastDexMode], a
|
||||
call Pokedex_ClearLockedIDs
|
||||
|
||||
xor a
|
||||
ld [wPokedexShinyToggle], a
|
||||
|
||||
pop af
|
||||
ldh [hInMenu], a
|
||||
pop af
|
||||
|
|
@ -429,6 +432,9 @@ Pokedex_UpdateDexEntryScreen:
|
|||
ld a, [hl]
|
||||
and A_BUTTON
|
||||
jr nz, .do_menu_action
|
||||
ld a, [hl]
|
||||
and SELECT
|
||||
jr nz, .toggle_shininess
|
||||
call Pokedex_NextOrPreviousDexEntry
|
||||
ret nc
|
||||
call Pokedex_IncrementDexPointer
|
||||
|
|
@ -453,6 +459,24 @@ Pokedex_UpdateDexEntryScreen:
|
|||
ld [wJumptableIndex], a
|
||||
ret
|
||||
|
||||
.toggle_shininess
|
||||
; toggle the current shininess setting
|
||||
ld a, [wPokedexShinyToggle]
|
||||
xor 1
|
||||
ld [wPokedexShinyToggle], a
|
||||
; refresh palettes
|
||||
ld a, SCGB_POKEDEX
|
||||
call Pokedex_GetSGBLayout
|
||||
; play sound based on setting
|
||||
ld a, [wPokedexShinyToggle]
|
||||
and a
|
||||
ld de, SFX_BUMP
|
||||
jr z, .got_sound
|
||||
ld de, SFX_SHINE
|
||||
.got_sound
|
||||
call PlaySFX
|
||||
jp WaitSFX
|
||||
|
||||
Pokedex_Page:
|
||||
ld a, [wPokedexStatus]
|
||||
xor 1 ; toggle page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue