mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
e3e0bcd653
Name a lot of text labels according to our conventions
42 lines
859 B
NASM
42 lines
859 B
NASM
GiveParkBalls:
|
|
xor a
|
|
ld [wContestMon], a
|
|
ld a, 20
|
|
ld [wParkBallsRemaining], a
|
|
farcall StartBugContestTimer
|
|
ret
|
|
|
|
BugCatchingContestBattleScript::
|
|
loadvar VAR_BATTLETYPE, BATTLETYPE_CONTEST
|
|
randomwildmon
|
|
startbattle
|
|
reloadmapafterbattle
|
|
readmem wParkBallsRemaining
|
|
iffalse BugCatchingContestOutOfBallsScript
|
|
end
|
|
|
|
BugCatchingContestOverScript::
|
|
playsound SFX_ELEVATOR_END
|
|
opentext
|
|
writetext BugCatchingContestTimeUpText
|
|
waitbutton
|
|
sjump BugCatchingContestReturnToGateScript
|
|
|
|
BugCatchingContestOutOfBallsScript:
|
|
playsound SFX_ELEVATOR_END
|
|
opentext
|
|
writetext BugCatchingContestIsOverText
|
|
waitbutton
|
|
|
|
BugCatchingContestReturnToGateScript:
|
|
closetext
|
|
jumpstd bugcontestresultswarp
|
|
|
|
BugCatchingContestTimeUpText:
|
|
text_far _BugCatchingContestTimeUpText
|
|
text_end
|
|
|
|
BugCatchingContestIsOverText:
|
|
text_far _BugCatchingContestIsOverText
|
|
text_end
|