diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-16 18:33:38 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-16 18:33:38 -0400 |
commit | 5812bc4ebe83bb80294bbb40846ae6fb1c76e5bf (patch) | |
tree | fe785fd3344aa0013797a57a4bc5bfe93cf80783 /src/field_map_obj.c | |
parent | ca88036ebe4441a2afc7267da1fda2a4b68820a8 (diff) |
npc_block_way__next_tile
Diffstat (limited to 'src/field_map_obj.c')
-rwxr-xr-x | src/field_map_obj.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/field_map_obj.c b/src/field_map_obj.c index 06fd36be3..93baccf36 100755 --- a/src/field_map_obj.c +++ b/src/field_map_obj.c @@ -3635,6 +3635,19 @@ void npc_set_running_behaviour_etc(struct MapObject *mapObject, u8 animPattern) gSprites[mapObject->spriteId].data1 = 0; } +dirn2anim(npc_running_behaviour_by_direction, gUnknown_0850DB53) + +bool8 npc_block_way__next_tile(struct MapObject *mapObject, u8 direction) +{ + s16 x; + s16 y; + + x = mapObject->coords2.x; + y = mapObject->coords2.y; + MoveCoords(direction, &x, &y); + return npc_block_way(mapObject, x, y, direction); +} + asm(".section .text.get_face_direction_anim_id"); void FieldObjectClearAnimIfSpecialAnimActive(struct MapObject *); |