summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-06-20 09:24:36 -0400
committerscnorton <scnorton@biociphers.org>2017-06-20 09:24:36 -0400
commit69891685104b488fb950d4f081a846aa7c98ee93 (patch)
tree76455af9b7c08ba1929c773e59e7186d26fb7cf0 /src
parent163c3dc51a2b069d028bf0f9384c5b7fc4471173 (diff)
MauvilleGymSpecial3
Diffstat (limited to 'src')
-rwxr-xr-xsrc/field_specials.c57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/field_specials.c b/src/field_specials.c
index 02c0b0f74..86be781ff 100755
--- a/src/field_specials.c
+++ b/src/field_specials.c
@@ -472,3 +472,60 @@ void MauvilleGymSpecial2(void)
}
}
}
+
+void MauvilleGymSpecial3(void)
+{
+ int i, x, y;
+ const struct Coords8 *switchCoords = gUnknown_083F8364;
+ for (i=ARRAY_COUNT(gUnknown_083F8364)-1; i>=0; i--)
+ {
+ MapGridSetMetatileIdAt(switchCoords->x, switchCoords->y, 0x206);
+ switchCoords++;
+ }
+ for (y=12; y<24; y++)
+ {
+ for (x=7; x<16; x++)
+ {
+ switch (MapGridGetMetatileIdAt(x, y))
+ {
+ case 0x220:
+ MapGridSetMetatileIdAt(x, y, 0x230);
+ break;
+ case 0x221:
+ MapGridSetMetatileIdAt(x, y, 0x231);
+ break;
+ case 0x228:
+ MapGridSetMetatileIdAt(x, y, 0x238);
+ break;
+ case 0x229:
+ MapGridSetMetatileIdAt(x, y, 0x239);
+ break;
+ case 0x222:
+ MapGridSetMetatileIdAt(x, y, 0x232);
+ break;
+ case 0x223:
+ MapGridSetMetatileIdAt(x, y, 0x233);
+ break;
+ case 0x22a:
+ MapGridSetMetatileIdAt(x, y, 0x23a);
+ break;
+ case 0x22b:
+ MapGridSetMetatileIdAt(x, y, 0x23b);
+ break;
+ case 0x240:
+ MapGridSetMetatileIdAt(x, y, 0xe42);
+ break;
+ case 0x241:
+ MapGridSetMetatileIdAt(x, y, 0xe43);
+ break;
+ case 0x248:
+ case 0x249:
+ MapGridSetMetatileIdAt(x, y, 0x21a);
+ break;
+ case 0x250:
+ MapGridSetMetatileIdAt(x, y, 0x251);
+ break;
+ }
+ }
+ }
+}