summaryrefslogtreecommitdiff
path: root/engine/events/bug_contest/contest.asm
diff options
context:
space:
mode:
authorIIMarckus <iimarckus@gmail.com>2020-02-09 02:20:05 -0700
committerIIMarckus <iimarckus@gmail.com>2020-02-09 02:20:05 -0700
commita7e3a999ff21ecac0bfbe7f091f9ff901075a323 (patch)
tree8032e91c6a426b355b6d1d3505bbc1fdc9c40fa6 /engine/events/bug_contest/contest.asm
parentd561a6d2db176240549fa605dc3e7e1f59e86607 (diff)
parent0543e933915a65127a8b803789d049478c7889d5 (diff)
Merge https://github.com/libjet/pokegold
Diffstat (limited to 'engine/events/bug_contest/contest.asm')
-rwxr-xr-xengine/events/bug_contest/contest.asm41
1 files changed, 41 insertions, 0 deletions
diff --git a/engine/events/bug_contest/contest.asm b/engine/events/bug_contest/contest.asm
new file mode 100755
index 00000000..88c300e9
--- /dev/null
+++ b/engine/events/bug_contest/contest.asm
@@ -0,0 +1,41 @@
+GiveParkBalls:
+ xor a
+ ld [wContestMon], a
+ ld a, 20
+ ld [wParkBalls], a
+ farcall StartBugContestTimer
+ ret
+
+BugCatchingContestBattleScript::
+ writecode VAR_BATTLETYPE, BATTLETYPE_CONTEST
+ randomwildmon
+ startbattle
+ reloadmapafterbattle
+ copybytetovar wParkBalls
+ iffalse BugCatchingContestOutOfBallsScript
+ end
+
+BugCatchingContestOverScript::
+ playsound SFX_ELEVATOR_END
+ opentext
+ writetext BugCatchingContestTimeUpText
+ waitbutton
+ jump $79CD
+
+BugCatchingContestOutOfBallsScript:
+ playsound SFX_ELEVATOR_END
+ opentext
+ writetext BugCatchingContestIsOverText
+ waitbutton
+
+BugCatchingContestReturnToGateScript:
+ closetext
+ jumpstd bugcontestresultswarp
+
+BugCatchingContestTimeUpText:
+ text_far _BugCatchingContestTimeUpText
+ db "@"
+
+BugCatchingContestIsOverText:
+ text_far _BugCatchingContestIsOverText
+ db "@" \ No newline at end of file