summaryrefslogtreecommitdiff
path: root/src/tv.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-06-29 16:53:38 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-06-29 16:53:38 -0400
commitabdf7cbf02442fb3d5cfe9945a8e093b273317a9 (patch)
tree13fe5cddb1eb5fe31e036ea7436882b06f4f8e1f /src/tv.c
parenteb80012757b664a474f3c745115aa4f109b69443 (diff)
Label fishing effect functions
Diffstat (limited to 'src/tv.c')
-rw-r--r--src/tv.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/tv.c b/src/tv.c
index 17a02be6b..d48d48bb3 100644
--- a/src/tv.c
+++ b/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;
- }
}
}