summaryrefslogtreecommitdiff
path: root/event/bug_contest/contest.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-12-23 17:14:09 -0500
committeryenatch <yenatch@gmail.com>2017-12-23 17:14:09 -0500
commitc51968f0de6b8420c141dde27339e82a42837c5b (patch)
tree782f2b25f21adacb48fd516694b8a82864fe0b99 /event/bug_contest/contest.asm
parentc883ab4d34ecb4890010e808d6b6d533f5d8ad56 (diff)
parent878092004956418bfd77bfdb9fc9dd7f640f80d2 (diff)
Merge remote-tracking branch 'origin/master' into master
Diffstat (limited to 'event/bug_contest/contest.asm')
-rw-r--r--event/bug_contest/contest.asm43
1 files changed, 43 insertions, 0 deletions
diff --git a/event/bug_contest/contest.asm b/event/bug_contest/contest.asm
new file mode 100644
index 000000000..2cb88ad30
--- /dev/null
+++ b/event/bug_contest/contest.asm
@@ -0,0 +1,43 @@
+Special_GiveParkBalls: ; 135db
+ xor a
+ ld [wContestMon], a
+ ld a, 20
+ ld [wParkBallsRemaining], a
+ callba StartBugContestTimer
+ ret
+
+BugCatchingContestBattleScript:: ; 0x135eb
+ writecode VAR_BATTLETYPE, BATTLETYPE_CONTEST
+ randomwildmon
+ startbattle
+ reloadmapafterbattle
+ copybytetovar wParkBallsRemaining
+ iffalse BugCatchingContestOutOfBallsScript
+ end
+
+BugCatchingContestOverScript:: ; 0x135f8
+ playsound SFX_ELEVATOR_END
+ opentext
+ writetext BugCatchingContestText_BeeepTimesUp
+ waitbutton
+ jump BugCatchingContestReturnToGateScript
+
+BugCatchingContestOutOfBallsScript: ; 0x13603
+ playsound SFX_ELEVATOR_END
+ opentext
+ writetext BugCatchingContestText_ContestIsOver
+ waitbutton
+
+BugCatchingContestReturnToGateScript: ; 0x1360b
+ closetext
+ jumpstd bugcontestresultswarp
+
+BugCatchingContestText_BeeepTimesUp: ; 0x1360f
+ ; ANNOUNCER: BEEEP! Time's up!
+ text_jump UnknownText_0x1bd2ca
+ db "@"
+
+BugCatchingContestText_ContestIsOver: ; 0x13614
+ ; ANNOUNCER: The Contest is over!
+ text_jump UnknownText_0x1bd2e7
+ db "@"