diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-05-17 08:41:41 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-05-17 08:41:41 -0400 |
commit | 18b3b55ad42f77ea028982ab2817371fc63631de (patch) | |
tree | df61b4a681ce6d18502bff9b061f0c1a3fbc0289 /src | |
parent | 1c6396051a016689c568a00ab89b0d15d58f87ce (diff) |
sub_80BE8EC
Diffstat (limited to 'src')
-rw-r--r-- | src/tv.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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) |