summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-09-10 17:47:37 -0400
committerscnorton <scnorton@biociphers.org>2017-09-10 17:47:37 -0400
commitbcf844f965912cac05b6cfb26f430b2ede75f743 (patch)
tree903cbad71dab3227b31eae07dfc291c56d93e2f2 /src
parent84569918376aa346cbb94925a70d64569821a4ac (diff)
sub_808F080
Diffstat (limited to 'src')
-rw-r--r--src/field_map_obj.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/field_map_obj.c b/src/field_map_obj.c
index 42769ed13..b33332661 100644
--- a/src/field_map_obj.c
+++ b/src/field_map_obj.c
@@ -1510,3 +1510,14 @@ u16 GetFieldObjectFlagIdByFieldObjectId(u8 mapObjectId)
{
return GetFieldObjectFlagIdByLocalIdAndMap(gMapObjects[mapObjectId].localId, gMapObjects[mapObjectId].mapNum, gMapObjects[mapObjectId].mapGroup);
}
+
+u8 sub_808F080(u8 localId, u8 mapNum, u8 mapGroup)
+{
+ u8 mapObjectId;
+
+ if (TryGetFieldObjectIdByLocalIdAndMap(localId, mapNum, mapGroup, &mapObjectId))
+ {
+ return 0xFF;
+ }
+ return gMapObjects[mapObjectId].trainerType;
+}