summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-05-17 08:41:41 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-05-17 08:41:41 -0400
commit18b3b55ad42f77ea028982ab2817371fc63631de (patch)
treedf61b4a681ce6d18502bff9b061f0c1a3fbc0289 /src
parent1c6396051a016689c568a00ab89b0d15d58f87ce (diff)
sub_80BE8EC
Diffstat (limited to 'src')
-rw-r--r--src/tv.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tv.c b/src/tv.c
index c312091e0..75fa427e6 100644
--- a/src/tv.c
+++ b/src/tv.c
@@ -282,6 +282,23 @@ void UpdateTVShowsPerDay(u16 arg0)
sub_80BEA5C(arg0);
}
+void sub_80BE8EC(u16 arg0) {
+ u8 showidx;
+ TVShow *tvShow;
+ if (gSaveBlock1.outbreakPokemonSpecies == 0) {
+ for (showidx=0; showidx<24; showidx++) {
+ if (gSaveBlock1.tvShows[showidx].massOutbreak.var00 == 0x29 && gSaveBlock1.tvShows[showidx].massOutbreak.var01 == 0x01) {
+ tvShow = &(gSaveBlock1.tvShows[showidx]);
+ if (tvShow->massOutbreak.var16 < arg0)
+ tvShow->massOutbreak.var16 = 0;
+ else
+ tvShow->massOutbreak.var16 -= arg0;
+ break;
+ }
+ }
+ }
+}
+
asm(".section .text_b");
u8 sub_80BF4F4(u8 arg0)