mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00

- Replaces the Old Rod with the Candy Sack, an item to evolve Meltan into Melmetal. Meltan and Melmetal aren't in yet. - Improves Gym Leader and Elite Four AI by a lot. They still use items, they're just better. Fixes XSpecial use while we're at it; before, it didn't actually increase the stat... - The Scarlet Book now takes up both shelves, one section for each Paradox Pokemon. I also moved the bookshelf so it looks nicer. - Text in Celadon University has been reduced significantly, taking up less memory and being a bit more RBY-like. It has also been made more accurate (thanks to Daiginjo for translating my booklet!) - The Magikarp researcher in Celadon University now gives TM Dragon Rage (no longer unused!) - Added a guard for Mt. Moon Crater. - Removed TrainerNamePointers, Blank Leader Name Code, and Dakutens/Hakutens using a guide published by YakiNeen. - PP no longer uses a shitty graphic and is instead properly implemented into the font, optimising the status screen. Also displays in-battle which is kinda cool. - Lorelei, Bruno, and Agatha now play the Gym Leader theme, not just Lance. Still unsure how to fix Celadon University's trainers, all I know is a lot of the information should be taken from the Oak fight I did. The code is radically different and doesn't call trainer headers at all. You'll likely want to start from scratch. The Mt. Moon Crater Guard's text is a little wonky, not sure what's up there. May have been from the way I accessed Mt. Moon in testing. Anyway, if you want to mess around feel free.
79 lines
1.4 KiB
NASM
79 lines
1.4 KiB
NASM
AerodactylFossil:
|
|
ld a, FOSSIL_AERODACTYL
|
|
ld [wcf91], a
|
|
call DisplayMonFrontSpriteInBox
|
|
call EnableAutoTextBoxDrawing
|
|
tx_pre AerodactylFossilText
|
|
ret
|
|
|
|
AerodactylFossilText::
|
|
text_far _AerodactylFossilText
|
|
text_end
|
|
|
|
KabutopsFossil:
|
|
ld a, FOSSIL_KABUTOPS
|
|
ld [wcf91], a
|
|
call DisplayMonFrontSpriteInBox
|
|
call EnableAutoTextBoxDrawing
|
|
tx_pre KabutopsFossilText
|
|
ret
|
|
|
|
KabutopsFossilText::
|
|
text_far _KabutopsFossilText
|
|
text_end
|
|
|
|
ScarletBookScream::
|
|
ld a, SCREAM_TAIL
|
|
ld [wcf91], a
|
|
call PlayCry
|
|
call DisplayMonFrontSpriteInBox
|
|
call EnableAutoTextBoxDrawing
|
|
tx_pre ScarletBook1
|
|
ret
|
|
|
|
ScarletBookSandy::
|
|
ld a, SANDY_SHOCKS
|
|
ld [wcf91], a
|
|
call PlayCry
|
|
call DisplayMonFrontSpriteInBox
|
|
call EnableAutoTextBoxDrawing
|
|
tx_pre ScarletBook2
|
|
ret
|
|
|
|
ScarletBook1::
|
|
text_far _ScarletBook1
|
|
text_end
|
|
|
|
ScarletBook2::
|
|
text_far _ScarletBook2
|
|
text_end
|
|
|
|
DisplayMonFrontSpriteInBox:
|
|
; Displays a pokemon's front sprite in a pop-up window.
|
|
; [wcf91] = pokemon internal id number
|
|
ld a, 1
|
|
ldh [hAutoBGTransferEnabled], a
|
|
call Delay3
|
|
xor a
|
|
ldh [hWY], a
|
|
call SaveScreenTilesToBuffer1
|
|
ld a, MON_SPRITE_POPUP
|
|
ld [wTextBoxID], a
|
|
call DisplayTextBoxID
|
|
call UpdateSprites
|
|
ld a, [wcf91]
|
|
ld [wd0b5], a
|
|
call GetMonHeader
|
|
ld de, vChars1 tile $31
|
|
call LoadMonFrontSprite
|
|
ld a, $80
|
|
ldh [hStartTileID], a
|
|
hlcoord 10, 11
|
|
predef AnimateSendingOutMon
|
|
call WaitForTextScrollButtonPress
|
|
call LoadScreenTilesFromBuffer1
|
|
call Delay3
|
|
ld a, $90
|
|
ldh [hWY], a
|
|
ret
|