Label fishing effect functions
This commit is contained in:
14
src/tv.c
14
src/tv.c
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user