diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-06-27 08:34:22 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-06-27 08:34:22 -0400 |
commit | 0687a65dc9b67d99d7bb8bdb656ce0c358a57f66 (patch) | |
tree | 8e29f22dfed3ce64af5c442be106eaa776a6fb06 /src | |
parent | a3c3267a9c915f86b986df90e747e12a90bcf5b5 (diff) |
Through sub_806A18C
Diffstat (limited to 'src')
-rwxr-xr-x | src/field_tasks.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/field_tasks.c b/src/field_tasks.c index 653d3ffd9..8ddef126b 100755 --- a/src/field_tasks.c +++ b/src/field_tasks.c @@ -776,3 +776,21 @@ void PerStepCallback_806A07C(u8 taskId) } } } + +const u16 gUnknown_08376418[] = {0xe8, 0xeb, 0xea, 0xe9}; + +void sub_806A18C(s16 *data, s16 x, s16 y) +{ + u16 tile; + if ((--data[0]) == 0) + { + tile = 0xe8; + } + else + { + tile = gUnknown_08376418[data[0] / 8]; + } + MapGridSetMetatileIdAt(x, y, tile); + CurrentMapDrawMetatileAt(x, y); + MapGridSetMetatileIdAt(x, y, 0xe8); +} |