Skip to content

Commit

Permalink
Fish always get hooked
Browse files Browse the repository at this point in the history
also littleroot town script change but no changes were found
  • Loading branch information
SpiritsUndead committed Apr 30, 2024
1 parent 1fa070e commit e71459d
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/field_player_avatar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1794,10 +1794,8 @@ static bool8 Fishing_ShowDots(struct Task *task)
task->tFrameCounter++;
if (JOY_NEW(A_BUTTON))
{
task->tStep = FISHING_NO_BITE;
if (task->tRoundsPlayed != 0)
task->tStep = FISHING_GOT_AWAY;
return TRUE;
task->tStep = FISHING_GOT_BITE;
return FALSE;
}
else
{
Expand All @@ -1806,7 +1804,7 @@ static bool8 Fishing_ShowDots(struct Task *task)
task->tFrameCounter = 0;
if (task->tNumDots >= task->tDotsRequired)
{
task->tStep++;
task->tStep = FISHING_GOT_BITE;
if (task->tRoundsPlayed != 0)
task->tStep++;
task->tRoundsPlayed++;
Expand Down Expand Up @@ -1879,9 +1877,7 @@ static bool8 Fishing_WaitForA(struct Task *task)

AlignFishingAnimationFrames();
task->tFrameCounter++;
if (task->tFrameCounter >= reelTimeouts[task->tFishingRod])
task->tStep = FISHING_GOT_AWAY;
else if (JOY_NEW(A_BUTTON))
if (JOY_NEW(A_BUTTON))
task->tStep++;
return FALSE;
}
Expand All @@ -1898,18 +1894,6 @@ static bool8 Fishing_CheckMoreDots(struct Task *task)

AlignFishingAnimationFrames();
task->tStep++;
if (task->tRoundsPlayed < task->tMinRoundsRequired)
{
task->tStep = FISHING_START_ROUND;
}
else if (task->tRoundsPlayed < 2)
{
// probability of having to play another round
s16 probability = Random() % 100;

if (moreDotsChance[task->tFishingRod][task->tRoundsPlayed] > probability)
task->tStep = FISHING_START_ROUND;
}
return FALSE;
}

Expand Down

0 comments on commit e71459d

Please sign in to comment.