fix fishing encounter rolls
This commit is contained in:
parent
d1ca1f667f
commit
26395fe600
2 changed files with 2 additions and 2 deletions
|
@ -1150,7 +1150,7 @@ void CreateBoxMon(struct BoxPokemon *boxMon, u16 species, u8 level, u8 fixedIV,
|
||||||
totalRerolls += I_SHINY_CHARM_ADDITIONAL_ROLLS;
|
totalRerolls += I_SHINY_CHARM_ADDITIONAL_ROLLS;
|
||||||
if (LURE_STEP_COUNT != 0)
|
if (LURE_STEP_COUNT != 0)
|
||||||
totalRerolls += 1;
|
totalRerolls += 1;
|
||||||
if (IsCurrentEncounterFishing())
|
if (I_FISHING_CHAIN && IsCurrentEncounterFishing())
|
||||||
totalRerolls += CalculateChainFishingShinyRolls();
|
totalRerolls += CalculateChainFishingShinyRolls();
|
||||||
|
|
||||||
while (GET_SHINY_VALUE(value, personality) >= SHINY_ODDS && totalRerolls > 0)
|
while (GET_SHINY_VALUE(value, personality) >= SHINY_ODDS && totalRerolls > 0)
|
||||||
|
|
|
@ -919,7 +919,7 @@ static void SetEncounterFishing(void)
|
||||||
|
|
||||||
u32 CalculateChainFishingShinyRolls(void)
|
u32 CalculateChainFishingShinyRolls(void)
|
||||||
{
|
{
|
||||||
return (1 + (2 * GetCurrentChainFishingDexNavStreak()));
|
return 2 * GetCurrentChainFishingDexNavStreak();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetLastFishingSpecies(u32 species)
|
static void SetLastFishingSpecies(u32 species)
|
||||||
|
|
Loading…
Reference in a new issue