mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 22:52:15 +13:00
Gym Leader Rematches!
This commit adds a large fundamental change to KEP, that being Gym Rematches. This is achieved alongside a rework to the script that makes those post-game-gating NPCs shift around. If you add a new one, just add its constant to the lists you'll see in the Hall of Fame script. It also fixes a few bugs: - Fixed a bug where Cinnabar Gym loaded a fleet of Blaines. This occurred due to the way he is coded at base, and a misunderstanding I had when implementing his scaling. This is now fixed by standardising his gym script instead, while letting the gym trainers still use the old one. - Fixed a bug where the Up-Grade NPC would not appear after beating Silph Co. 11F. However, Giovanni currently seems to have trouble with his text. This floor needs some re-coding anyway, given we need to add Jessie and James to it. And some misc. changes: - Changed the first Moon Stone in Mt. Moon to a Poison Stone for the Nidoking speedrunners - Debug Mode now has a line of code to set up the post-game easily - Changed Surge's initial battle text to Yellow's - Added Sabrina's more accurate LGPE initial battle text, referring to the spoon she bent by accident
This commit is contained in:
parent
5f8250f0d1
commit
749abc67b7
24 changed files with 575 additions and 67 deletions
|
|
@ -93,28 +93,10 @@ HallofFameRoomScript1:
|
|||
ldh [hSpriteIndexOrTextID], a
|
||||
call DisplayTextID
|
||||
ld a, $ff
|
||||
ld [wJoyIgnore], a ; TODO: Make this less awful. See: Giovanni in Silph
|
||||
ld a, HS_CERULEAN_CAVE_GUY
|
||||
ld [wMissableObjectIndex], a
|
||||
predef HideObject
|
||||
ld a, HS_MT_MOON_CRATER_GUARD
|
||||
ld [wMissableObjectIndex], a
|
||||
predef HideObject
|
||||
ld a, HS_ROUTE_1_OAK
|
||||
ld [wMissableObjectIndex], a
|
||||
predef ShowObject
|
||||
ld a, HS_BILLS_NIDORINO
|
||||
ld [wMissableObjectIndex], a
|
||||
predef HideObject
|
||||
ld a, HS_MANSION_GUARD
|
||||
ld [wMissableObjectIndex], a
|
||||
predef HideObject
|
||||
ld a, HS_YUJIROU
|
||||
ld [wMissableObjectIndex], a
|
||||
predef HideObject
|
||||
ld a, HS_YUJIROU_REMATCH
|
||||
ld [wMissableObjectIndex], a
|
||||
predef ShowObject
|
||||
ld [wJoyIgnore], a
|
||||
|
||||
call PostGameSetup
|
||||
|
||||
ld a, $2
|
||||
ld [wHallOfFameCurScript], a
|
||||
ret
|
||||
|
|
@ -125,3 +107,43 @@ HallOfFame_TextPointers:
|
|||
HallofFameRoomText1:
|
||||
text_far _HallofFameRoomText1
|
||||
text_end
|
||||
|
||||
; Post-Game Functionality
|
||||
; This script is adapted from the Silph Co. 11F script that reforms Saffron City.
|
||||
; It replaces the Cerulean Cave Guard bit, adapting him into the whole ordeal.
|
||||
|
||||
PostGameSetup:
|
||||
SetEvent EVENT_POST_GAME_ATTAINED
|
||||
ld hl, ObjectsToHide
|
||||
.loop1
|
||||
ld a, [hli]
|
||||
cp $ff
|
||||
jr z, .skip
|
||||
push hl
|
||||
ld [wMissableObjectIndex], a
|
||||
predef HideObject
|
||||
pop hl
|
||||
jr .loop1
|
||||
.skip
|
||||
ld hl, ObjectsToShow
|
||||
.loop2
|
||||
ld a, [hli]
|
||||
cp -1
|
||||
ret z
|
||||
push hl
|
||||
ld [wMissableObjectIndex], a
|
||||
predef ShowObject
|
||||
pop hl
|
||||
jr .loop2
|
||||
|
||||
ObjectsToShow:
|
||||
db HS_ROUTE_1_OAK ; Oak post-game fight
|
||||
db HS_YUJIROU_REMATCH ; Yujirou rematch
|
||||
db -1 ; end
|
||||
|
||||
ObjectsToHide:
|
||||
db HS_BILLS_NIDORINO ; Bill's Garden access
|
||||
db HS_MANSION_GUARD ; Pokemon Mansion basement access
|
||||
db HS_MT_MOON_CRATER_GUARD ; Mt. Moon Crater access
|
||||
db HS_CERULEAN_CAVE_GUY ; Cerulean Cave access
|
||||
db -1 ; end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue