Added Underwater Tunnel!

This is a cave that connects Bill's Lighthouse and Route 10, only accessible after Surf is obtained. Contains a static Dragonite as a reference to the anime!
This commit is contained in:
MementoMartha 2023-04-05 12:31:11 +01:00
parent c7510aea57
commit 8ab3e1f2be
24 changed files with 111 additions and 11 deletions

View file

@ -0,0 +1,36 @@
UnderwaterTunnel_Script:
call EnableAutoTextBoxDrawing
ld hl, UnderwaterTunnelTrainerHeaders
ld de, UnderwaterTunnel_ScriptPointers
ld a, [wUnderwaterTunnelCurScript]
call ExecuteCurMapScriptInTable
ld [wUnderwaterTunnelCurScript], a
ret
UnderwaterTunnel_ScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBattle
dw EndTrainerBattle
UnderwaterTunnel_TextPointers:
dw DragoniteText
UnderwaterTunnelTrainerHeaders:
def_trainers
DragoniteTrainerHeader:
trainer EVENT_BEAT_DRAGONITE, 0, DragoniteBattleText, DragoniteBattleText, DragoniteBattleText
db -1 ; end
DragoniteText:
text_asm
ld hl, DragoniteTrainerHeader
call TalkToTrainer
jp TextScriptEnd
DragoniteBattleText:
text_far _DragoniteBattleText
text_asm
ld a, DRAGONITE
call PlayCry
call WaitForSoundToFinish
jp TextScriptEnd