Label fishing effect functions

This commit is contained in:
GriffinR
2020-06-29 16:53:38 -04:00
parent eb80012757
commit abdf7cbf02
8 changed files with 94 additions and 102 deletions

View File

@@ -1836,31 +1836,25 @@ static void TryEndMassOutbreak(u16 days)
gSaveBlock1Ptr->outbreakDaysLeft -= days;
}
void sub_80ED950(bool8 flag)
void RecordFishingAttemptForTV(bool8 caughtFish)
{
if (flag)
if (caughtFish)
{
if (sPokemonAnglerAttemptCounters >> 8 > 4)
{
PutFishingAdviceShowOnTheAir();
}
sPokemonAnglerAttemptCounters &= 0xFF;
if (sPokemonAnglerAttemptCounters != 0xFF)
{
sPokemonAnglerAttemptCounters += 0x01;
}
}
else
{
if ((u8)sPokemonAnglerAttemptCounters > 4)
{
PutFishingAdviceShowOnTheAir();
}
sPokemonAnglerAttemptCounters &= 0xFF00;
if (sPokemonAnglerAttemptCounters >> 8 != 0xFF)
{
sPokemonAnglerAttemptCounters += 0x0100;
}
}
}