diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2018-03-29 12:01:29 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2018-03-29 12:01:29 -0400 |
commit | 18e6512599ad5a52ee0046f2504a7b357cc80894 (patch) | |
tree | f5454bbb72ca858a372d2f71ac0e84607e2d43db /src | |
parent | af266c9e1bc286e80a451db7e2f95116655a4827 (diff) |
ContestEffect_25
Diffstat (limited to 'src')
-rw-r--r-- | src/contest_effect.c | 31 |
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); +} |