Skip to content

Commit

Permalink
Slight contest documentation (#2078)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsparagusEduardo authored Dec 27, 2024
1 parent 861c579 commit 50d325f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions include/constants/contest.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
#define CONTEST_EFFECT_TYPE_WORSEN 4
#define CONTEST_EFFECT_TYPE_SPECIAL_APPEAL 5
#define CONTEST_EFFECT_TYPE_TURN_ORDER 6
#define CONTEST_EFFECT_TYPE_UNKNOWN 8

#define COMBO_STARTER_RAIN_DANCE 1
#define COMBO_STARTER_RAGE 2
Expand Down
13 changes: 8 additions & 5 deletions src/contest.c
Original file line number Diff line number Diff line change
Expand Up @@ -3171,16 +3171,19 @@ static u16 GetMoveEffectSymbolTileOffset(u16 move, u8 contestant)

switch (gContestEffects[gContestMoves[move].effect].effectType)
{
case 0:
case 1:
case 8:
case CONTEST_EFFECT_TYPE_APPEAL:
case CONTEST_EFFECT_TYPE_AVOID_STARTLE:
case CONTEST_EFFECT_TYPE_UNKNOWN:
offset = 0x9082;
break;
case 2:
case 3:
case CONTEST_EFFECT_TYPE_STARTLE_MON:
case CONTEST_EFFECT_TYPE_STARTLE_MONS:
offset = 0x9088;
break;
default:
//case CONTEST_EFFECT_TYPE_WORSEN:
//case CONTEST_EFFECT_TYPE_SPECIAL_APPEAL:
//case CONTEST_EFFECT_TYPE_TURN_ORDER:
offset = 0x9086;
break;
}
Expand Down

0 comments on commit 50d325f

Please sign in to comment.