Dream ball config.

This commit is contained in:
Eduardo Quezada 2020-10-17 02:51:08 -03:00
parent e320e6f7ff
commit 0717783651
2 changed files with 9 additions and 0 deletions

View File

@ -28,5 +28,6 @@
#define P_DIVE_BALL_MODIFIER GEN_3 // In Gen4+, Dive Ball's effectiveness increases by when Surfing or Fishing.
#define P_DUSK_BALL_MODIFIER GEN_7 // In Gen7+, Net Ball's catch multiplier is x3 instead of x3.5.
#define P_QUICK_BALL_MODIFIER GEN_7 // In Gen5+, Quick Ball's catch multiplier is x5 instead of x4.
#define P_DREAM_BALL_MODIFIER GEN_8 // In Gen8+, Dream Ball's catch multiplier is x4 when the target is asleep.
#endif // GUARD_CONSTANTS_ITEM_CONFIG_H

View File

@ -9926,6 +9926,14 @@ static void Cmd_handleballthrow(void)
ballMultiplier = 35;
#endif
break;
case ITEM_DREAM_BALL:
#if P_DREAM_BALL_MODIFIER >= GEN_8
if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP)
ballMultiplier = 40;
#else
ballMultiplier = 10;
#endif
break;
}
}
else