diff options
author | SphericalIce <sphericalice@outlook.com> | 2021-02-22 15:29:14 +0000 |
---|---|---|
committer | SphericalIce <sphericalice@outlook.com> | 2021-02-22 15:29:14 +0000 |
commit | 381116b3c4962b7b33a3cd2ebef24aaec7f41caf (patch) | |
tree | 5f4a9e3c5b65dc1a553cb5929b4494627f9a8b6c /src | |
parent | d313f5e58c726ced378f22eee5e06f384a614c35 (diff) |
Add labels for cracked floor metatiles
Diffstat (limited to 'src')
-rw-r--r-- | src/field_tasks.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/field_tasks.c b/src/field_tasks.c index 002977a10..a68b10966 100644 --- a/src/field_tasks.c +++ b/src/field_tasks.c @@ -635,9 +635,12 @@ static void AshGrassPerStepCallback(u8 taskId) } } +// This function uses the constants for gTileset_Cave's metatile labels, but other tilesets with +// the CrackedFloorPerStepCallback callback use the same metatile numbers for the cracked floor +// and hole metatiles, such as gTileset_MirageTower. static void SetCrackedFloorHoleMetatile(s16 x, s16 y) { - MapGridSetMetatileIdAt(x, y, MapGridGetMetatileIdAt(x, y) == 0x22f ? 0x206 : 0x237);// unsure what these are referring to + MapGridSetMetatileIdAt(x, y, MapGridGetMetatileIdAt(x, y) == METATILE_Cave_CrackedFloor ? METATILE_Cave_CrackedFloor_Hole : METATILE_Pacifidlog_SkyPillar_CrackedFloor_Hole); CurrentMapDrawMetatileAt(x, y); } |