mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-01-31 05:40:12 +13:00
Compare commits
No commits in common. "6fb3bbc811cbe911be7b2339df062a396bf2f202" and "95c17786bb472d67c9be4ae8cbc0b9e9e3f9f3f7" have entirely different histories.
6fb3bbc811
...
95c17786bb
|
|
@ -69,7 +69,6 @@ SpecialsPointers::
|
||||||
add_special UpdateSprites ; bank 0
|
add_special UpdateSprites ; bank 0
|
||||||
add_special UpdatePlayerSprite ; bank 0
|
add_special UpdatePlayerSprite ; bank 0
|
||||||
add_special GameCornerPrizeMonCheckDex
|
add_special GameCornerPrizeMonCheckDex
|
||||||
add_special GameCornerPrizeMonShowDex
|
|
||||||
add_special UnusedSetSeenMon ; unused
|
add_special UnusedSetSeenMon ; unused
|
||||||
add_special WaitSFX ; bank 0
|
add_special WaitSFX ; bank 0
|
||||||
add_special PlayMapMusic ; bank 0
|
add_special PlayMapMusic ; bank 0
|
||||||
|
|
|
||||||
|
|
@ -236,20 +236,11 @@ SetPlayerPalette:
|
||||||
ret
|
ret
|
||||||
|
|
||||||
GameCornerPrizeMonCheckDex:
|
GameCornerPrizeMonCheckDex:
|
||||||
xor a
|
|
||||||
ld [wPokedexShinyToggle], a
|
|
||||||
ld [wWasMonCaught], a
|
|
||||||
ld a, [wScriptVar]
|
ld a, [wScriptVar]
|
||||||
call CheckCaughtMon
|
call CheckCaughtMon
|
||||||
ret nz
|
ret nz
|
||||||
ld a, 1
|
ld a, [wScriptVar]
|
||||||
ld [wWasMonCaught], a
|
call SetSeenAndCaughtMon
|
||||||
ret
|
|
||||||
|
|
||||||
GameCornerPrizeMonShowDex:
|
|
||||||
ld a, [wWasMonCaught]
|
|
||||||
cp 0
|
|
||||||
ret z
|
|
||||||
call FadeToMenu
|
call FadeToMenu
|
||||||
ld a, [wScriptVar]
|
ld a, [wScriptVar]
|
||||||
ld [wNamedObjectIndex], a
|
ld [wNamedObjectIndex], a
|
||||||
|
|
|
||||||
|
|
@ -532,15 +532,6 @@ PokeBallEffect:
|
||||||
|
|
||||||
ld a, [wEnemyMonSpecies]
|
ld a, [wEnemyMonSpecies]
|
||||||
ld [wTempSpecies], a
|
ld [wTempSpecies], a
|
||||||
farcall BattleCheckEnemyShininess
|
|
||||||
jp c, .shiny
|
|
||||||
xor a
|
|
||||||
jp .shinycont
|
|
||||||
.shiny
|
|
||||||
xor a
|
|
||||||
inc a
|
|
||||||
.shinycont
|
|
||||||
ld [wPokedexShinyToggle], a
|
|
||||||
predef NewPokedexEntry
|
predef NewPokedexEntry
|
||||||
|
|
||||||
.skip_pokedex
|
.skip_pokedex
|
||||||
|
|
|
||||||
|
|
@ -114,9 +114,9 @@ GetOptionPointer:
|
||||||
Options_TextSpeed:
|
Options_TextSpeed:
|
||||||
call GetTextSpeed
|
call GetTextSpeed
|
||||||
ldh a, [hJoyPressed]
|
ldh a, [hJoyPressed]
|
||||||
bit D_RIGHT_F, a
|
|
||||||
jr nz, .RightPressed
|
|
||||||
bit D_LEFT_F, a
|
bit D_LEFT_F, a
|
||||||
|
jr nz, .LeftPressed
|
||||||
|
bit D_RIGHT_F, a
|
||||||
jr z, .NonePressed
|
jr z, .NonePressed
|
||||||
ld a, c ; right pressed
|
ld a, c ; right pressed
|
||||||
cp OPT_TEXT_SPEED_NONE
|
cp OPT_TEXT_SPEED_NONE
|
||||||
|
|
@ -128,7 +128,7 @@ Options_TextSpeed:
|
||||||
ld a, e
|
ld a, e
|
||||||
jr .Save
|
jr .Save
|
||||||
|
|
||||||
.RightPressed:
|
.LeftPressed:
|
||||||
ld a, c
|
ld a, c
|
||||||
and a
|
and a
|
||||||
jr nz, .Decrease
|
jr nz, .Decrease
|
||||||
|
|
|
||||||
|
|
@ -210,22 +210,6 @@ endr
|
||||||
inc de
|
inc de
|
||||||
ld a, c
|
ld a, c
|
||||||
ld [de], a
|
ld [de], a
|
||||||
|
|
||||||
; Set Shininess for New Dex Entry
|
|
||||||
dec de
|
|
||||||
ld b, d
|
|
||||||
ld c, e
|
|
||||||
farcall CheckShininess
|
|
||||||
jp c, .shiny
|
|
||||||
xor a
|
|
||||||
jp .shinycont
|
|
||||||
.shiny
|
|
||||||
xor a
|
|
||||||
inc a
|
|
||||||
.shinycont
|
|
||||||
ld [wPokedexShinyToggle], a
|
|
||||||
; Unclobber de
|
|
||||||
inc de
|
|
||||||
inc de
|
inc de
|
||||||
|
|
||||||
; Initialize PP.
|
; Initialize PP.
|
||||||
|
|
|
||||||
|
|
@ -154,8 +154,6 @@ CeladonGameCornerPrizeRoomPokemonVendor:
|
||||||
loadmonindex 1, PIKACHU
|
loadmonindex 1, PIKACHU
|
||||||
special GameCornerPrizeMonCheckDex
|
special GameCornerPrizeMonCheckDex
|
||||||
givepoke PIKACHU, 25
|
givepoke PIKACHU, 25
|
||||||
loadmonindex 1, PIKACHU
|
|
||||||
special GameCornerPrizeMonShowDex
|
|
||||||
takecoins CELADONGAMECORNERPRIZEROOM_PIKACHU_COINS
|
takecoins CELADONGAMECORNERPRIZEROOM_PIKACHU_COINS
|
||||||
sjump .loop
|
sjump .loop
|
||||||
|
|
||||||
|
|
@ -174,8 +172,6 @@ CeladonGameCornerPrizeRoomPokemonVendor:
|
||||||
loadmonindex 2, PORYGON
|
loadmonindex 2, PORYGON
|
||||||
special GameCornerPrizeMonCheckDex
|
special GameCornerPrizeMonCheckDex
|
||||||
givepoke PORYGON, 15
|
givepoke PORYGON, 15
|
||||||
loadmonindex 2, PORYGON
|
|
||||||
special GameCornerPrizeMonShowDex
|
|
||||||
takecoins CELADONGAMECORNERPRIZEROOM_PORYGON_COINS
|
takecoins CELADONGAMECORNERPRIZEROOM_PORYGON_COINS
|
||||||
sjump .loop
|
sjump .loop
|
||||||
|
|
||||||
|
|
@ -194,8 +190,6 @@ CeladonGameCornerPrizeRoomPokemonVendor:
|
||||||
loadmonindex 3, LARVITAR
|
loadmonindex 3, LARVITAR
|
||||||
special GameCornerPrizeMonCheckDex
|
special GameCornerPrizeMonCheckDex
|
||||||
givepoke LARVITAR, 40
|
givepoke LARVITAR, 40
|
||||||
loadmonindex 3, LARVITAR
|
|
||||||
special GameCornerPrizeMonShowDex
|
|
||||||
takecoins CELADONGAMECORNERPRIZEROOM_LARVITAR_COINS
|
takecoins CELADONGAMECORNERPRIZEROOM_LARVITAR_COINS
|
||||||
sjump .loop
|
sjump .loop
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -190,8 +190,6 @@ GoldenrodGameCornerPrizeMonVendorScript:
|
||||||
loadmonindex 1, ABRA
|
loadmonindex 1, ABRA
|
||||||
special GameCornerPrizeMonCheckDex
|
special GameCornerPrizeMonCheckDex
|
||||||
givepoke ABRA, 5
|
givepoke ABRA, 5
|
||||||
loadmonindex 1, ABRA
|
|
||||||
special GameCornerPrizeMonShowDex
|
|
||||||
takecoins GOLDENRODGAMECORNER_ABRA_COINS
|
takecoins GOLDENRODGAMECORNER_ABRA_COINS
|
||||||
sjump .loop
|
sjump .loop
|
||||||
|
|
||||||
|
|
@ -210,8 +208,6 @@ GoldenrodGameCornerPrizeMonVendorScript:
|
||||||
loadmonindex 2, CUBONE
|
loadmonindex 2, CUBONE
|
||||||
special GameCornerPrizeMonCheckDex
|
special GameCornerPrizeMonCheckDex
|
||||||
givepoke CUBONE, 15
|
givepoke CUBONE, 15
|
||||||
loadmonindex 2, CUBONE
|
|
||||||
special GameCornerPrizeMonShowDex
|
|
||||||
takecoins GOLDENRODGAMECORNER_CUBONE_COINS
|
takecoins GOLDENRODGAMECORNER_CUBONE_COINS
|
||||||
sjump .loop
|
sjump .loop
|
||||||
|
|
||||||
|
|
@ -230,8 +226,6 @@ GoldenrodGameCornerPrizeMonVendorScript:
|
||||||
loadmonindex 3, WOBBUFFET
|
loadmonindex 3, WOBBUFFET
|
||||||
special GameCornerPrizeMonCheckDex
|
special GameCornerPrizeMonCheckDex
|
||||||
givepoke WOBBUFFET, 15
|
givepoke WOBBUFFET, 15
|
||||||
loadmonindex 3, WOBBUFFET
|
|
||||||
special GameCornerPrizeMonShowDex
|
|
||||||
takecoins GOLDENRODGAMECORNER_WOBBUFFET_COINS
|
takecoins GOLDENRODGAMECORNER_WOBBUFFET_COINS
|
||||||
sjump .loop
|
sjump .loop
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -739,7 +739,6 @@ wPokedexDisplayNumber:: dw
|
||||||
wDexLastSeenIndex:: db ; index into wPokedexSeen containing the last non-zero value
|
wDexLastSeenIndex:: db ; index into wPokedexSeen containing the last non-zero value
|
||||||
wDexLastSeenValue:: db ; value at index
|
wDexLastSeenValue:: db ; value at index
|
||||||
wDexTempCounter:: dw
|
wDexTempCounter:: dw
|
||||||
wWasMonCaught:: db ; for use with givepoke
|
|
||||||
wPokedexDataEnd::
|
wPokedexDataEnd::
|
||||||
|
|
||||||
wPrevDexEntry:: dw
|
wPrevDexEntry:: dw
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue