summaryrefslogtreecommitdiff
path: root/src/contest_effect.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-03-29 17:33:23 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-03-29 17:33:23 -0400
commitd0b42dd4ea1ae0c0d1cc33207718e8e07c3f5763 (patch)
tree791ca110e566b660176817ed0192c28a00e3e3d8 /src/contest_effect.c
parentf03b1700f867164cfbaf337821503a83fa7272b7 (diff)
ContestEffect_34
Diffstat (limited to 'src/contest_effect.c')
-rw-r--r--src/contest_effect.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/contest_effect.c b/src/contest_effect.c
index 415732003..86eb78dac 100644
--- a/src/contest_effect.c
+++ b/src/contest_effect.c
@@ -505,3 +505,33 @@ void ContestEffect_33(void)
else
SetContestantStatusUnk13(shared192D0.unk11, 24);
}
+
+void ContestEffect_34(void)
+{
+ u8 r0 = Random() % 10;
+ s16 r4;
+
+ if (r0 < 3)
+ {
+ r4 = 10;
+ SetContestantStatusUnk13(shared192D0.unk11, 26);
+ } else if (r0 < 6)
+ {
+ r4 = 20;
+ SetContestantStatusUnk13(shared192D0.unk11, 27);
+ } else if (r0 < 8)
+ {
+ r4 = 40;
+ SetContestantStatusUnk13(shared192D0.unk11, 28);
+ } else if (r0 < 9)
+ {
+ r4 = 60;
+ SetContestantStatusUnk13(shared192D0.unk11, 29);
+ }
+ else
+ {
+ r4 = 80;
+ SetContestantStatusUnk13(shared192D0.unk11, 30);
+ }
+ curContestant->appeal2 = r4;
+}