summaryrefslogtreecommitdiff
path: root/src/use_pokeblock.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-06-29 22:17:58 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-06-29 22:17:58 -0400
commit05c997bd75ce375425f1941c86b7643973e41e3f (patch)
tree716345f12151409d1a0852916c709b4c4fb75814 /src/use_pokeblock.c
parentfe40c6053622e89dbc0f9e26493946fa098765fb (diff)
sub_81370A4
Diffstat (limited to 'src/use_pokeblock.c')
-rwxr-xr-xsrc/use_pokeblock.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/use_pokeblock.c b/src/use_pokeblock.c
index 5a14f74fa..b29cb7454 100755
--- a/src/use_pokeblock.c
+++ b/src/use_pokeblock.c
@@ -828,3 +828,27 @@ void sub_8136F74(struct Pokeblock *pokeblock, struct Pokemon *pokemon)
}
}
}
+
+bool8 sub_8137058(void)
+{
+ struct Pokemon *pokemon = gPlayerParty;
+ pokemon += gUnknown_083DFEC4->unk893c[gUnknown_083DFEC4->unk87DC].partyIdx;
+ if (GetMonData(pokemon, MON_DATA_SHEEN) == 255)
+ return TRUE;
+ return FALSE;
+}
+
+u8 sub_81370A4(u8 a0)
+{
+ u8 i;
+ for (i=0; i<PARTY_SIZE; i++)
+ {
+ if (!GetMonData(&gPlayerParty[i], MON_DATA_IS_EGG))
+ {
+ if (a0 == 0)
+ return i;
+ a0--;
+ }
+ }
+ return 0;
+}