mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
44 lines
945 B
NASM
44 lines
945 B
NASM
GiveParkBalls:
|
|
xor a
|
|
ld [wContestMon], a
|
|
ld a, 20
|
|
ld [wParkBallsRemaining], a
|
|
farcall StartBugContestTimer
|
|
ret
|
|
|
|
BugCatchingContestBattleScript::
|
|
writecode VAR_BATTLETYPE, BATTLETYPE_CONTEST
|
|
randomwildmon
|
|
startbattle
|
|
reloadmapafterbattle
|
|
copybytetovar wParkBallsRemaining
|
|
iffalse BugCatchingContestOutOfBallsScript
|
|
end
|
|
|
|
BugCatchingContestOverScript::
|
|
playsound SFX_ELEVATOR_END
|
|
opentext
|
|
writetext BugCatchingContestText_BeeepTimesUp
|
|
waitbutton
|
|
jump BugCatchingContestReturnToGateScript
|
|
|
|
BugCatchingContestOutOfBallsScript:
|
|
playsound SFX_ELEVATOR_END
|
|
opentext
|
|
writetext BugCatchingContestText_ContestIsOver
|
|
waitbutton
|
|
|
|
BugCatchingContestReturnToGateScript:
|
|
closetext
|
|
jumpstd bugcontestresultswarp
|
|
|
|
BugCatchingContestText_BeeepTimesUp:
|
|
; ANNOUNCER: BEEEP! Time's up!
|
|
text_far UnknownText_0x1bd2ca
|
|
text_end
|
|
|
|
BugCatchingContestText_ContestIsOver:
|
|
; ANNOUNCER: The Contest is over!
|
|
text_far UnknownText_0x1bd2e7
|
|
text_end
|