summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-03-29 12:01:29 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-03-29 12:01:29 -0400
commit18e6512599ad5a52ee0046f2504a7b357cc80894 (patch)
treef5454bbb72ca858a372d2f71ac0e84607e2d43db /src
parentaf266c9e1bc286e80a451db7e2f95116655a4827 (diff)
ContestEffect_25
Diffstat (limited to 'src')
-rw-r--r--src/contest_effect.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/contest_effect.c b/src/contest_effect.c
index 7a6ffc0b0..c38cb2f96 100644
--- a/src/contest_effect.c
+++ b/src/contest_effect.c
@@ -270,3 +270,34 @@ void ContestEffect_24(void)
sub_80B9038(CONTEST_CATEGORY_TOUGH);
SetContestantStatusUnk13(shared192D0.unk11, 48);
}
+
+void ContestEffect_25(void)
+{
+ bool32 r4 = FALSE;
+
+ if (shared192D0.unk0[shared192D0.unk11] != 3)
+ {
+ int r5;
+
+ for (r5 = 0; r5 < 4; r5++)
+ {
+ if (shared192D0.unk0[shared192D0.unk11] + 1 == shared192D0.unk0[r5])
+ {
+ if (sub_80B90C0(r5))
+ {
+ sub_80B157C(r5);
+ SetContestantStatusUnk13(r5, 10);
+ r4 = TRUE;
+ }
+ else
+ {
+ SetContestantStatusUnk13(r5, 60);
+ r4 = TRUE;
+ }
+ }
+ }
+ }
+ SetContestantStatusUnk13(shared192D0.unk11, 9);
+ if (!r4)
+ SetContestantStatusUnk14(shared192D0.unk11, 0x36);
+}