diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-06-29 16:53:38 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2020-06-29 16:53:38 -0400 |
commit | abdf7cbf02442fb3d5cfe9945a8e093b273317a9 (patch) | |
tree | 13fe5cddb1eb5fe31e036ea7436882b06f4f8e1f /src/tv.c | |
parent | eb80012757b664a474f3c745115aa4f109b69443 (diff) |
Label fishing effect functions
Diffstat (limited to 'src/tv.c')
-rw-r--r-- | src/tv.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -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; - } } } |