Lure Ball modifier in config.

This commit is contained in:
Eduardo Quezada 2020-10-17 01:33:10 -03:00
parent 7fbd64ec37
commit e65f22a76c
2 changed files with 6 additions and 1 deletions

View file

@ -17,5 +17,6 @@
#define P_SHINY_CHARM_REROLLS 3 // Amount of re-rolls if the player has the Shiny Charm. Set to 0 to disable Shiny Charm's effects.
#define P_KEY_FOSSILS GEN_7 // In Gen4+, all Gen 3 fossils became regular items.
#define P_KEY_ESCAPE_ROPE GEN_7 // In Gen8, Escape Rope became a Key Item.
#define P_LURE_BALL_MODIFIER GEN_7 // In Gen7+, Lure Ball's catch multiplier is x5 instead of x3.
#endif // GUARD_CONSTANTS_ITEM_CONFIG_H

View file

@ -9829,7 +9829,11 @@ static void Cmd_handleballthrow(void)
break;
case ITEM_LURE_BALL:
if (gIsFishingEncounter)
ballMultiplier = 30;
#if P_LURE_BALL_MODIFIER >= GEN_7
ballMultiplier = 50;
#else
ballMultiplier = 30;
#endif
break;
case ITEM_MOON_BALL:
for (i = 0; i < EVOS_PER_MON; i++)