mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00

The Candy Jar is now obtainable in the Indigo Plateau, instead of being an item obtained from Chief. I've removed most Chief-related stuff but expect some instability after you beat him, as I don't believe I completely removed the function to call the text. The Candy Jar will now not collect candies in the following instances; - It isn't in the bag. - The total would go over 40. Just makes sense and ensures players are engaging with the proper intentions. The 40 total is necessary, as over 40 stops the jar from working. This does mean some candies are "lost", but the players see that. There's a bug where Meltan will have the moves of the Pokemon it's replacing and I don't know why. I've tried a bunch of fixes in `LoadEnemyMonData` but it didn't seem to want to work.
95 lines
1.8 KiB
NASM
95 lines
1.8 KiB
NASM
IndigoPlateauLobby_Script:
|
|
call Serial_TryEstablishingExternallyClockedConnection
|
|
call EnableAutoTextBoxDrawing
|
|
ld hl, wCurrentMapScriptFlags
|
|
bit 6, [hl]
|
|
res 6, [hl]
|
|
ret z
|
|
ResetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
|
|
ld hl, wBeatLorelei
|
|
bit 1, [hl]
|
|
res 1, [hl]
|
|
ret z
|
|
; Elite 4 events
|
|
ResetEventRange INDIGO_PLATEAU_EVENTS_START, EVENT_LANCES_ROOM_LOCK_DOOR
|
|
ret
|
|
|
|
IndigoPlateauLobby_TextPointers:
|
|
dw IndigoHealNurseText
|
|
dw IndigoPlateauLobbyText2
|
|
dw IndigoPlateauLobbyText3
|
|
dw CandyJarGuy
|
|
dw IndigoCashierText
|
|
dw IndigoTradeNurseText
|
|
dw ExeggutorTrade
|
|
dw IndigoPlateauLobbyText4
|
|
|
|
IndigoHealNurseText:
|
|
script_pokecenter_nurse
|
|
|
|
IndigoPlateauLobbyText2:
|
|
text_far _IndigoPlateauLobbyText2
|
|
text_end
|
|
|
|
IndigoPlateauLobbyText3:
|
|
text_far _IndigoPlateauLobbyText3
|
|
text_end
|
|
|
|
IndigoTradeNurseText:
|
|
script_cable_club_receptionist
|
|
|
|
IndigoCashierText::
|
|
script_mart ULTRA_BALL, GREAT_BALL, FULL_RESTORE, MAX_POTION, FULL_HEAL, REVIVE, MAX_REPEL
|
|
|
|
ExeggutorTrade:
|
|
text_asm
|
|
ld a, TRADE_FOR_EXEGGUTOR_A
|
|
ld [wWhichTrade], a
|
|
predef DoInGameTradeDialogue
|
|
jp TextScriptEnd
|
|
|
|
IndigoPlateauLobbyText4:
|
|
text_asm
|
|
callfar PokecenterChanseyText
|
|
jp TextScriptEnd
|
|
|
|
CandyJarGuy:
|
|
text_asm
|
|
CheckEvent EVENT_GOT_CANDY_JAR
|
|
jr nz, .got_item
|
|
ld hl, CandyJarPreReceiveText
|
|
call PrintText
|
|
lb bc, CANDY_JAR, 1
|
|
call GiveItem
|
|
jr nc, .bag_full
|
|
ld hl, ReceivedCandyJarText
|
|
call PrintText
|
|
SetEvent EVENT_GOT_CANDY_JAR
|
|
jr .done
|
|
.bag_full
|
|
ld hl, CandyJarNoRoomText
|
|
call PrintText
|
|
jr .done
|
|
.got_item
|
|
ld hl, CandyJarExplanationText
|
|
call PrintText
|
|
.done
|
|
jp TextScriptEnd
|
|
|
|
CandyJarPreReceiveText:
|
|
text_far _CandyJarPreReceiveText
|
|
text_end
|
|
|
|
ReceivedCandyJarText:
|
|
text_far _ReceivedCandyJarText
|
|
sound_get_item_1
|
|
text_end
|
|
|
|
CandyJarExplanationText:
|
|
text_far _CandyJarExplanationText
|
|
text_end
|
|
|
|
CandyJarNoRoomText:
|
|
text_far _CandyJarNoRoomText
|
|
text_end
|