summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-09-11 10:46:26 -0400
committerscnorton <scnorton@biociphers.org>2017-09-11 10:46:26 -0400
commit9306122359968579b27b9a41e3cfd082860a4231 (patch)
tree17fd4596152067f7a3f9eca50e354de97adaa83a /src
parent2b9b75a8245c32467d97ffeef280003c4fe0bb66 (diff)
through sub_808F23C
Diffstat (limited to 'src')
-rw-r--r--src/field_map_obj.c36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/field_map_obj.c b/src/field_map_obj.c
index 56c5dee85..59f8d35a1 100644
--- a/src/field_map_obj.c
+++ b/src/field_map_obj.c
@@ -1578,7 +1578,7 @@ struct MapObjectTemplate *FindFieldObjectTemplateInArrayByLocalId(u8 localId, st
return NULL;
}
-struct MapObjectTemplate *sub_808F1B4(struct MapObject *mapObject)
+struct MapObjectTemplate *sub_808F1B4(const struct MapObject *mapObject)
{
int i;
@@ -1595,3 +1595,37 @@ struct MapObjectTemplate *sub_808F1B4(struct MapObject *mapObject)
}
return NULL;
}
+
+void sub_808F208(const struct MapObject *mapObject)
+{
+ struct MapObjectTemplate *mapObjectTemplate;
+
+ mapObjectTemplate = sub_808F1B4(mapObject);
+ if (mapObjectTemplate != NULL)
+ {
+ mapObjectTemplate->x = mapObject->coords2.x - 7;
+ mapObjectTemplate->y = mapObject->coords2.y - 7;
+ }
+}
+
+void sub_808F228(const struct MapObject *mapObject, const u8 *script)
+{
+ struct MapObjectTemplate *mapObjectTemplate;
+
+ mapObjectTemplate = sub_808F1B4(mapObject);
+ if (mapObjectTemplate != NULL)
+ {
+ mapObjectTemplate->script = script;
+ }
+}
+
+void sub_808F23C(const struct MapObject *mapObject, u8 movementType)
+{
+ struct MapObjectTemplate *mapObjectTemplate;
+
+ mapObjectTemplate = sub_808F1B4(mapObject);
+ if (mapObjectTemplate != NULL)
+ {
+ mapObjectTemplate->movementType = movementType;
+ }
+}