summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalax1@gmail.com>2017-05-17 11:21:52 -0400
committerPikalaxALT <pikalax1@gmail.com>2017-05-17 11:21:52 -0400
commit5ee5e6b87e5cd8d67f505aa94f76dd38f10e8486 (patch)
tree2027aeed049a23dfe54842f364865f48d4db54ff /src
parent43f3259ee1c25aa2e1c1e7a6f62afc59a5eab7af (diff)
couple more functions in tv.text_80BF544; fix type declaration of sub_80BF77C
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 246b90a03..bea5eb98f 100644
--- a/src/tv.c
+++ b/src/tv.c
@@ -420,6 +420,23 @@ s8 sub_80BF720(TVShow tvShow[])
return -1;
}
+s8 sub_80BF74C(TVShow tvShow[])
+{
+ s8 idx;
+ for (idx=5; idx<24; idx++) {
+ if (tvShow[idx].common.var00 == 0)
+ return idx;
+ }
+ return -1;
+}
+
+bool8 sub_80BF77C(u16 value)
+{
+ if (Random() <= value)
+ return FALSE;
+ return TRUE;
+}
+
asm(".section .text_c");
void DoTVShowPokemonNewsMassOutbreak(void)