/* $Id$ */

typedef struct DrawIndustrySpec1Struct {
	byte x;
	byte image_1;
	byte image_2;
	byte image_3;
} DrawIndustrySpec1Struct;

typedef struct DrawIndustrySpec4Struct {
	byte image_1;
	byte image_2;
	byte image_3;
} DrawIndustrySpec4Struct;

#define M(s1, s2, sx, sy, w, h, dz, p) { s1, s2, sx, sy, w - 1, h - 1, dz, p }

static const DrawBuildingsTileStruct _industry_draw_tile_data[700] = {
	M(     0xf54,      0x7db,  7,  0,  9,  9,  10, 0),
	M(     0xf54,      0x7dc,  7,  0,  9,  9,  30, 0),
	M(     0xf54,      0x7dd,  7,  0,  9,  9,  30, 0),
	M(     0x7e6,      0x7dd,  7,  0,  9,  9,  30, 0),
	M(     0x7e6,      0x7dd,  7,  0,  9,  9,  30, 0),
	M(     0x7e6,      0x7de,  7,  0,  9,  9,  30, 0),
	M(     0x7e6,      0x7df,  7,  0,  9,  9,  30, 0),
	M(     0x7e6,      0x7df,  7,  0,  9,  9,  30, 0),
	M(     0xf54,      0x7e0,  1,  2, 15,  9,  30, 0),
	M(     0xf54,      0x7e1,  1,  2, 15,  9,  30, 0),
	M(     0xf54,      0x7e2,  1,  2, 15,  9,  30, 0),
	M(     0x7e6,      0x7e2,  1,  2, 15,  9,  30, 0),
	M(     0xf54,      0x7e3,  4,  4,  9,  9,  30, 0),
	M(     0xf54,      0x7e4,  4,  4,  9,  9,  30, 0),
	M(     0xf54,      0x7e5,  4,  4,  9,  9,  30, 0),
	M(     0x7e6,      0x7e5,  4,  4,  9,  9,  30, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x7e6,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x7e9,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x7e6,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x7e7,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x7e6,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x7e8,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,      0x7fd,  1,  1, 14, 14,   5, 0),
	M(     0xf54,      0x7fe,  1,  1, 14, 14,  44, 0),
	M(     0xf54,      0x7ff,  1,  1, 14, 14,  44, 0),
	M(     0xf54,      0x7ff,  1,  1, 14, 14,  44, 0),
	M(     0xf54,      0x800,  0,  2, 16, 12,   6, 0),
	M(     0xf54,      0x801,  0,  2, 16, 12,  47, 0),
	M(     0xf54,      0x802,  0,  2, 16, 12,  50, 0),
	M(     0xf54,      0x802,  0,  2, 16, 12,  50, 0),
	M(     0xf54,      0x803,  1,  0, 14, 15,   5, 0),
	M(     0xf54,      0x804,  1,  0, 14, 15,  19, 0),
	M(     0xf54,      0x805,  1,  0, 14, 15,  21, 0),
	M(     0xf54,      0x805,  1,  0, 14, 15,  21, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,      0x806,  1,  2, 14, 11,  32, 5),
	M(     0xf54,      0x80d,  1,  0, 13, 16,   8, 0),
	M(     0xf54,      0x80e,  1,  0, 13, 16,  20, 0),
	M(     0xf54,      0x80f,  1,  0, 13, 16,  20, 0),
	M(     0xf54,      0x80f,  1,  0, 13, 16,  20, 0),
	M(     0xf54,      0x810,  0,  1, 16, 14,   8, 0),
	M(     0xf54,      0x811,  0,  1, 16, 14,  21, 0),
	M(     0xf54,      0x812,  0,  1, 16, 14,  21, 0),
	M(     0xf54,      0x812,  0,  1, 16, 14,  21, 0),
	M(     0xf54,      0x813,  1,  1, 14, 14,  12, 0),
	M(     0xf54,      0x814,  1,  1, 14, 14,  15, 0),
	M(     0xf54,      0x815,  1,  1, 14, 14,  22, 0),
	M(     0xf54,      0x815,  1,  1, 14, 14,  22, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,      0x816,  0,  0, 16, 15,  20, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,      0x817,  0,  1, 16, 13,  19, 0),
	M(     0x81d,      0x818,  0,  0, 16, 16,  10, 0),
	M(     0x81d,      0x819,  0,  0, 16, 16,  15, 0),
	M(     0x81d,      0x81a,  0,  0, 16, 16,  31, 0),
	M(     0x81d,      0x81b,  0,  0, 16, 16,  39, 0),
	M(     0x81d,      0x81c,  0,  0, 16, 16,   7, 0),
	M(     0x81d,      0x81c,  0,  0, 16, 16,   7, 0),
	M(     0x81d,      0x81c,  0,  0, 16, 16,   7, 0),
	M(     0x81d,      0x81c,  0,  0, 16, 16,   7, 0),
	M(     0xf54,     0x81e | PALETTE_MODIFIER_COLOR,  1,  1, 14, 14,   4, 0),
	M(     0xf54,     0x81f | PALETTE_MODIFIER_COLOR,  1,  1, 14, 14,  24, 0),
	M(     0xf54,     0x820 | PALETTE_MODIFIER_COLOR,  1,  1, 14, 14,  27, 0),
	M(     0x58c,     0x820 | PALETTE_MODIFIER_COLOR,  1,  1, 14, 14,  27, 0),
	M(     0xf54,     0x821 | PALETTE_MODIFIER_COLOR,  3,  3, 10,  9,   3, 0),
	M(     0xf54,     0x822 | PALETTE_MODIFIER_COLOR,  3,  3, 10,  9,  63, 0),
	M(     0xf54,     0x823 | PALETTE_MODIFIER_COLOR,  3,  3, 10,  9,  62, 0),
	M(     0x58c,     0x823 | PALETTE_MODIFIER_COLOR,  3,  3, 10,  9,  62, 0),
	M(     0xf54,     0x824 | PALETTE_MODIFIER_COLOR,  4,  4,  7,  7,   3, 0),
	M(     0xf54,     0x825 | PALETTE_MODIFIER_COLOR,  4,  4,  7,  7,  72, 0),
	M(     0xf54,     0x825 | PALETTE_MODIFIER_COLOR,  4,  4,  7,  7,  72, 0),
	M(     0x58c,     0x826 | PALETTE_MODIFIER_COLOR,  4,  4,  7,  7,  80, 0),
	M(     0xf54,     0x827 | PALETTE_MODIFIER_COLOR,  2,  0, 12, 16,  51, 0),
	M(     0xf54,     0x828 | PALETTE_MODIFIER_COLOR,  2,  0, 12, 16,  51, 0),
	M(     0xf54,     0x829 | PALETTE_MODIFIER_COLOR,  2,  0, 12, 16,  51, 0),
	M(     0x58c,     0x829 | PALETTE_MODIFIER_COLOR,  2,  0, 12, 16,  51, 0),
	M(     0xf54,     0x82a | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  26, 0),
	M(     0xf54,     0x82b | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  44, 0),
	M(     0xf54,     0x82c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  46, 0),
	M(     0x58c,     0x82c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  46, 0),
	M(     0xf54,      0x82d,  3,  1, 10, 13,   2, 0),
	M(     0xf54,      0x82e,  3,  1, 10, 13,  11, 0),
	M(     0xf54,      0x82f,  3,  1, 10, 13,  11, 0),
	M(     0x58c,      0x82f,  3,  1, 10, 13,  11, 0),
	M(     0xfdd,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xfdd,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xfdd,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xfdd,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xfdd,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xfdd,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xfdd,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xfdd,      0x833,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x837,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x834,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x834,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x830,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x838,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x835,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x835,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x831,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x839,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x836,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x836,  0,  0, 16, 16,  20, 0),
	M(     0xfdd,      0x832,  0,  0, 16, 16,  20, 0),
	M(     0x7e6,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x87d,      0x87e,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x87e,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x87e,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x87e,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x87f,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x880,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x881,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x882,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x883,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x883,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x882,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x881,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x880,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x87f,  0,  0, 16, 16,  20, 0),
	M(     0x87d,      0x87e,  0,  0, 16, 16,  20, 0),
	M(     0x83a,     0x83c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x83a,     0x83c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x83a,     0x83c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x83a,     0x83c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x83b,     0x83d | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x83b,     0x83d | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x83b,     0x83d | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x83b,     0x83d | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x7e6,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x83e,     0x83f | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x83e,     0x83f | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x83e,     0x83f | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  18, 0),
	M(     0x7e6,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x840,      0x841,  0,  0, 16, 16,  18, 0),
	M(     0x840,      0x841,  0,  0, 16, 16,  18, 0),
	M(     0x840,      0x841,  0,  0, 16, 16,  18, 0),
	M(     0x7e6,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x842,      0x843,  0,  0, 16, 16,  30, 0),
	M(     0x842,      0x843,  0,  0, 16, 16,  30, 0),
	M(     0x842,      0x843,  0,  0, 16, 16,  30, 0),
	M(     0x7e6,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x844,      0x845,  0,  0, 16, 16,  16, 0),
	M(     0x844,      0x845,  0,  0, 16, 16,  16, 0),
	M(     0x844,      0x845,  0,  0, 16, 16,  16, 0),
	M(     0x7e6,      0x869,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86d,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86d,  0,  0, 16, 16,  50, 0),
	M(    0x862 | PALETTE_MODIFIER_COLOR,     0x866 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86a,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86e,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86e,  0,  0, 16, 16,  50, 0),
	M(    0x863 | PALETTE_MODIFIER_COLOR,     0x867 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86b,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86f,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86f,  0,  0, 16, 16,  50, 0),
	M(    0x864 | PALETTE_MODIFIER_COLOR,     0x868 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86c,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x870,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x870,  0,  0, 16, 16,  50, 0),
	M(    0x865 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0xf54,     0x871 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x875 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x875 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x879 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x872 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x876 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x876 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x87a | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x873 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x877 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x877 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x87b | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x874 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x878 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x878 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,     0x87c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf54,      0x7ea,  3,  2,  8,  8,  18, 0),
	M(     0xf54,      0x7eb,  3,  2,  8,  8,  37, 0),
	M(     0xf54,      0x7ec,  3,  2,  8,  8,  49, 0),
	M(     0x7e6,      0x7ec,  3,  2,  8,  8,  49, 0),
	M(     0x7e6,      0x7ec,  3,  2,  8,  8,  49, 0),
	M(     0x7e6,      0x7ed,  3,  2,  8,  8,  49, 0),
	M(     0x7e6,      0x7ee,  3,  2,  8,  8,  49, 0),
	M(     0x7e6,      0x7ee,  3,  2,  8,  8,  49, 0),
	M(     0xf54,      0x7ef,  3,  2, 10,  7,  20, 0),
	M(     0xf54,      0x7f0,  3,  2, 10,  7,  40, 0),
	M(     0xf54,      0x7f1,  3,  2, 10,  7,  40, 0),
	M(     0x7e6,      0x7f1,  3,  2, 10,  7,  40, 0),
	M(     0xf54,      0x7f2,  4,  4,  7,  8,  22, 0),
	M(     0xf54,      0x7f3,  4,  4,  7,  8,  22, 0),
	M(     0xf54,      0x7f4,  4,  4,  7,  8,  22, 0),
	M(     0x7e6,      0x7f4,  4,  4,  7,  8,  22, 0),
	M(     0xf54,      0x7f5,  2,  1, 11, 13,  12, 0),
	M(     0xf54,      0x7f6,  2,  1, 11, 13,  12, 0),
	M(     0xf54,      0x7f7,  2,  1, 11, 13,  12, 0),
	M(     0x7e6,      0x7f7,  2,  1, 11, 13,  12, 0),
	M(     0x7e6,      0x85c,  0,  0,  1,  1,   1, 0),
	M(     0x851,      0x852,  0,  0, 16, 16,  20, 0),
	M(     0x851,      0x852,  0,  0, 16, 16,  20, 0),
	M(    0x846 | PALETTE_MODIFIER_COLOR,     0x847 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  20, 0),
	M(     0x7e6,      0x85d,  0,  0,  1,  1,   1, 0),
	M(     0x853,      0x854,  0,  0, 16, 16,  20, 0),
	M(     0x853,      0x854,  0,  0, 16, 16,  20, 0),
	M(    0x848 | PALETTE_MODIFIER_COLOR,     0x849 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  20, 0),
	M(     0x7e6,      0x85e,  0,  0,  1,  1,   1, 0),
	M(     0x855,      0x856,  0,  0, 16, 16,  20, 0),
	M(     0x855,      0x856,  0,  0, 16, 16,  20, 0),
	M(    0x84a | PALETTE_MODIFIER_COLOR,     0x84b | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  20, 0),
	M(     0x7e6,      0x85f,  0,  0,  1,  1,   1, 0),
	M(     0x857,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x857,        0x0,  0,  0,  1,  1,   0, 0),
	M(    0x84c | PALETTE_MODIFIER_COLOR,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x7e6,      0x860,  0,  0,  1,  1,   1, 0),
	M(     0x858,      0x859,  0,  0, 16, 16,  20, 0),
	M(     0x858,      0x859,  0,  0, 16, 16,  20, 0),
	M(    0x84d | PALETTE_MODIFIER_COLOR,     0x84e | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  20, 0),
	M(     0x7e6,      0x861,  0,  0,  1,  1,   1, 0),
	M(     0x85a,      0x85b,  0,  0, 16, 16,  20, 0),
	M(     0x85a,      0x85b,  0,  0, 16, 16,  20, 0),
	M(    0x84f | PALETTE_MODIFIER_COLOR,     0x850 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  20, 0),
	M(     0x7e6,      0x884,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x884,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x884,  0,  0, 16, 16,  25, 0),
	M(     0x886,      0x884,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x885,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x885,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x885,  0,  0, 16, 16,  25, 0),
	M(     0x887,      0x885,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x88c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x88d | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x88d | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x88e | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x88f | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x890 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x890 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x891 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x892 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x893 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x893 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x894 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x895 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x896 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x896 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,     0x897 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x898,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x899,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x899,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x89a,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a6,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x89b,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x89c,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x89c,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x89d,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x89e,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x89f,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x89f,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a1,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a2,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a3,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a4,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a2,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a3,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8a5,  0,  0, 16, 16,  25, 0),
	M(     0x8a7,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8b7,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8b7,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8c7,  0,  0, 16, 16,  25, 0),
	M(     0x8a8,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8b8,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8b8,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c8,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8a9,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8b9,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8b9,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8c9,  0,  0, 16, 16,  25, 0),
	M(     0x8aa,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8ba,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8ba,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8ca,  0,  0, 16, 16,  25, 0),
	M(     0x8ab,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8bb,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8bb,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8cb,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8ac,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8bc,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8bc,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8cc,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8ad,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8bd,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8bd,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8cd,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8ae,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8be,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8be,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8ce,      0x8d7,  0,  0, 16, 16,  35, 0),
	M(     0x8af,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8bf,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8bf,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8cf,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8b0,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c0,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c0,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8d0,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8b1,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c1,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c1,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8d1,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8b2,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c2,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c2,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8d2,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8b3,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c3,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c3,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8d3,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8b4,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c4,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c4,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8d4,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8b5,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c5,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c5,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8d5,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8b6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8c6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8d6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8ce,      0x8d7,  0,  0, 16, 16,  35, 0),
	M(     0x8ce,      0x8d8,  0,  0, 16, 16,  35, 0),
	M(     0x8ce,      0x8d9,  0,  0, 16, 16,  35, 0),
	M(     0x8ce,      0x8d9,  0,  0, 16, 16,  35, 0),
	M(     0x7e6,      0x88a,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x88a,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x88a,  0,  0, 16, 16,  25, 0),
	M(     0x888,      0x88a,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x88b,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x88b,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x88b,  0,  0, 16, 16,  25, 0),
	M(     0x889,      0x88b,  0,  0, 16, 16,  25, 0),
	M(     0x8da,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e3,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e3,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8ec,  0,  0, 16, 16,  25, 0),
	M(     0x8db,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e4,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e4,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8ed,  0,  0, 16, 16,  25, 0),
	M(     0x8dc,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e5,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e5,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8ee,  0,  0, 16, 16,  25, 0),
	M(     0x8dd,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e6,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e6,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8ef,  0,  0, 16, 16,  25, 0),
	M(     0x8de,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8e7,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8e7,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8f0,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8df,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8e8,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8e8,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8f1,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8e0,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e9,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8e9,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x8f2,  0,  0, 16, 16,  25, 0),
	M(     0x8e1,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8ea,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8ea,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8f3,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8e2,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8eb,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8eb,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8f4,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8f5,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x905,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x905,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x915,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8f6,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x906,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x906,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x916,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8f7,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x907,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x907,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x917,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8f8,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x908,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x908,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x918,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8f9,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x909,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x909,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x919,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8fa,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90a,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90a,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x91a,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8fb,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90b,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90b,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x91b,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8fc,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90c,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90c,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x91c,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8fd,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90d,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90d,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x91d,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8fe,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90e,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90e,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x91e,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x8ff,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90f,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x90f,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x91f,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x900,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x910,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x910,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x920,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x901,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x911,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x911,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x921,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x902,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x912,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x912,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x922,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x903,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x913,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x913,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x923,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x904,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x914,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x914,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x924,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x925,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x925,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x925,      0x926,  0,  0, 16, 16,  30, 0),
	M(     0x925,      0x926,  0,  0, 16, 16,  30, 0),
	M(     0x925,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x925,        0x0,  0,  0, 16, 16,  25, 0),
	M(     0x925,      0x927,  0,  0, 16, 16,  30, 0),
	M(     0x925,      0x927,  0,  0, 16, 16,  30, 0),
	M(    0x11c6,     0x92b | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x92c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x92c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x92d | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x92e | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x92f | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x92f | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x930 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x928 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x929 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x929 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(    0x11c6,     0x92a | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  25, 0),
	M(     0x7e6,      0x869,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86d,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86d,  0,  0, 16, 16,  50, 0),
	M(    0x862 | PALETTE_MODIFIER_COLOR,     0x866 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86a,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86e,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86e,  0,  0, 16, 16,  50, 0),
	M(    0x863 | PALETTE_MODIFIER_COLOR,     0x867 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86b,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86f,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86f,  0,  0, 16, 16,  50, 0),
	M(    0x864 | PALETTE_MODIFIER_COLOR,     0x868 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x86c,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x870,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x870,  0,  0, 16, 16,  50, 0),
	M(    0x865 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0,  1,  1,   0, 0),
	M(     0x7e6,      0x931,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x935,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x935,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x939,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x932,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x936,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x936,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x93a,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x933,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x937,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x937,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x93b,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x934,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x938,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x938,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,      0x93c,  0,  0, 16, 16,  50, 0),
	M(     0x81d,      0x818,  0,  0, 16, 16,  10, 0),
	M(     0x81d,      0x819,  0,  0, 16, 16,  15, 0),
	M(     0x81d,      0x81a,  0,  0, 16, 16,  31, 0),
	M(     0x81d,      0x81b,  0,  0, 16, 16,  39, 0),
	M(     0x81d,      0x81c,  0,  0, 16, 16,   7, 0),
	M(     0x81d,      0x81c,  0,  0, 16, 16,   7, 0),
	M(     0x81d,      0x81c,  0,  0, 16, 16,   7, 0),
	M(     0x81d,      0x81c,  0,  0, 16, 16,   7, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1245 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1248 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1248 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x124b | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1247 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x124a | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x124a | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x124d | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1246 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1249 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1249 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x124c | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0x81d,     0x124e,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x124f,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1250,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1251,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1252,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1252,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1252,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1252,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1253,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1254,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1254,  0,  0, 16, 16,  10, 0),
	M(     0x81d,     0x1255,  0,  0, 16, 16,  10, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x125b,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x125e,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x125e,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1261,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x125c,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x125f,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x125f,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1262,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x125d,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1260,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1260,  0,  0, 16, 16,  50, 0),
	M(     0x7e6,     0x1263,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1264,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1264,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1268,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1265,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1265,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1269,  0,  0, 16, 16,  50, 4),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1266,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1266,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x126a,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1267,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x1267,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x126b,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,     0x126c,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1271,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1271,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1271,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1271,     0x1279,  0,  0, 16, 16,  50, 0),
	M(    0x1272,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1272,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1272,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1272,     0x127a,  0,  0, 16, 16,  50, 0),
	M(    0x1273,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1273,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1273,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1273,     0x127b,  0,  0, 16, 16,  50, 0),
	M(    0x1274,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1274,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1274,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1274,     0x127c,  0,  0, 16, 16,  50, 0),
	M(    0x1275,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1275,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1275,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1275,     0x127d,  0,  0, 16, 16,  50, 0),
	M(    0x1276,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1276,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1276,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1276,     0x127e,  0,  0, 16, 16,  50, 0),
	M(    0x1277,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1277,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1277,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1277,     0x127f,  0,  0, 16, 16,  50, 0),
	M(    0x1278,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1278,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1278,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1278,     0x1280,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,     0x1284 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,     0x1283 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(    0x1244,     0x1283 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(    0x1244,     0x1286 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(    0x1244,     0x1281 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(    0x1244,     0x1282 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(    0x1244,     0x1282 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(    0x1244,     0x1285 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,  0x1287 | PALETTE_TO_RED,  0,  0, 16, 16,  50, 0),
	M(    0x1243,  0x1287 | PALETTE_TO_RED,  0,  0, 16, 16,  50, 0),
	M(    0x1243,  0x1287 | PALETTE_TO_RED,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,  0x1288 | PALETTE_TO_RED,  0,  0, 16, 16,  50, 0),
	M(    0x1244,  0x1288 | PALETTE_TO_RED,  0,  0, 16, 16,  50, 0),
	M(    0x1244,  0x1288 | PALETTE_TO_RED,  0,  0, 16, 16,  50, 0),
	M(    0x1243,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1243,  0x1289 | PALETTE_TO_RED,  0,  0, 16, 16,  50, 3),
	M(    0x1243,  0x1289 | PALETTE_TO_RED,  0,  0, 16, 16,  50, 3),
	M(    0x1243,  0x1289 | PALETTE_TO_RED,  0,  0, 16, 16,  50, 3),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x1244,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x129b,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x129b,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x129b,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x129b,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x129c,  0,  0, 16, 16,  50, 2),
	M(     0xf8d,     0x129c,  0,  0, 16, 16,  50, 2),
	M(     0xf8d,     0x129c,  0,  0, 16, 16,  50, 2),
	M(     0xf8d,     0x129c,  0,  0, 16, 16,  50, 2),
	M(     0xf8d,     0x129d,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x129d,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x129d,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x129d,  0,  0, 16, 16,  50, 0),
	M(    0x12a0 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a0 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a0 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a0 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a1 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a1 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a1 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a1 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a2 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a2 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a2 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a2 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a3 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a3 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a3 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(    0x12a3 | PALETTE_MODIFIER_COLOR,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,        0x0,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x12a4 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x12a4 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x12a4 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x12a4 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x12a6 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x12a6 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x12a6 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x12a6 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 0),
	M(     0xf8d,     0x12a5 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 1),
	M(     0xf8d,     0x12a5 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 1),
	M(     0xf8d,     0x12a5 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 1),
	M(     0xf8d,     0x12a5 | PALETTE_MODIFIER_COLOR,  0,  0, 16, 16,  50, 1),
};

static const DrawIndustrySpec1Struct _draw_industry_spec1[96] = {
	{  8,   4,   0,   0},
	{  6,   0,   1,   0},
	{  4,   0,   2,   0},
	{  6,   0,   3,   0},
	{  8,   0,   4,   0},
	{ 10,   0,   5,   0},
	{ 12,   0,   6,   0},
	{ 10,   0,   1,   0},
	{  8,   0,   2,   0},
	{  6,   0,   3,   0},
	{  4,   0,   4,   0},
	{  6,   0,   5,   1},
	{  8,   0,   6,   1},
	{ 10,   0,   1,   1},
	{ 12,   0,   2,   1},
	{ 10,   0,   3,   1},
	{  8,   1,   4,   1},
	{  6,   1,   5,   1},
	{  4,   1,   6,   1},
	{  6,   1,   1,   1},
	{  8,   1,   2,   1},
	{ 10,   1,   3,   1},
	{ 12,   1,   4,   1},
	{ 10,   1,   5,   2},
	{  8,   1,   6,   2},
	{  6,   1,   1,   2},
	{  4,   1,   2,   2},
	{  6,   1,   3,   2},
	{  8,   1,   4,   2},
	{ 10,   1,   5,   2},
	{ 12,   1,   6,   2},
	{ 10,   1,   1,   2},
	{  8,   2,   2,   2},
	{  6,   2,   3,   2},
	{  4,   2,   4,   3},
	{  6,   2,   5,   3},
	{  8,   2,   6,   3},
	{ 10,   2,   1,   3},
	{ 12,   2,   2,   3},
	{ 10,   2,   3,   3},
	{  8,   2,   4,   3},
	{  6,   2,   5,   3},
	{  4,   2,   6,   3},
	{  6,   2,   1,   3},
	{  8,   2,   2,   3},
	{ 10,   2,   3,   4},
	{ 12,   2,   4,   4},
	{ 10,   2,   5,   4},
	{  8,   3,   6,   4},
	{  6,   3,   1,   4},
	{  4,   3,   2,   4},
	{  6,   3,   3,   4},
	{  8,   3,   4,   4},
	{ 10,   3,   5,   4},
	{ 12,   3,   6,   4},
	{ 10,   3,   1,   4},
	{  8,   3,   2,   4},
	{  6,   3,   3,   4},
	{  4,   3,   4,   4},
	{  6,   3,   5,   4},
	{  8,   3,   6,   4},
	{ 10,   3,   1,   4},
	{ 12,   3,   2,   4},
	{ 10,   3,   3,   4},
	{  8,   4,   4,   4},
	{  6,   4,   5,   4},
	{  4,   4,   6,   4},
	{  6,   4,   0,   4},
	{  8,   4,   0,   4},
	{ 10,   4,   0,   4},
	{ 12,   4,   0,   4},
	{ 10,   4,   0,   4},
	{  8,   4,   0,   4},
	{  6,   4,   0,   4},
	{  4,   4,   0,   4},
	{  6,   4,   0,   4},
	{  8,   4,   0,   4},
	{ 10,   4,   0,   4},
	{ 12,   4,   0,   4},
	{ 10,   4,   0,   4},
	{  8,   4,   0,   4},
	{  6,   4,   0,   4},
	{  4,   4,   0,   4},
	{  6,   4,   0,   4},
	{  8,   4,   0,   4},
	{ 10,   4,   0,   4},
	{ 12,   4,   0,   4},
	{ 10,   4,   0,   4},
	{  8,   4,   0,   4},
	{  6,   4,   0,   4},
	{  4,   4,   0,   4},
	{  6,   4,   0,   4},
	{  8,   4,   0,   4},
	{ 10,   4,   0,   4},
	{ 12,   4,   0,   4},
	{ 10,   4,   0,   4},
};

static const byte _drawtile_proc1_x[5] = {
	22, 17, 14, 10, 8
};

static const byte _drawtile_proc1_y[5] = {
	73, 70, 69, 66, 41
};

static const DrawIndustrySpec4Struct _industry_anim_offs_3[] = {
	{255, 255,   0},
	{  0, 255,   0},
	{  1, 255,   0},
	{  2, 255,   0},
	{  3, 255,   0},
	{  4, 255,   0},
	{  5, 255,   0},
	{  6, 255,   0},
	{  7, 255,   0},
	{  8, 255,   0},
	{  9, 255,   0},
	{ 10, 255,   0},
	{ 11, 255,   0},
	{ 12, 255,   0},
	{ 13, 255,   0},
	{ 14, 255,   0},
	{ 15, 255,   0},
	{ 16, 255,   0},
	{ 17, 255,   0},
	{ 18, 255,   0},
	{ 18, 255,   1},
	{ 18, 255,   2},
	{ 18, 255,   4},
	{ 18, 255,   6},
	{ 18, 255,   8},
	{ 18, 255,  11},
	{ 18, 255,  14},
	{ 18, 255,  17},
	{ 18, 255,  20},
	{ 18, 255,  24},
	{255,   0,  29},
	{255,   0,  24},
	{255,   0,  20},
	{255,   0,  17},
	{255,   0,  14},
	{255,   0,  11},
	{255,   0,   8},
	{255,   0,   6},
	{255,   0,   4},
	{255,   0,   2},
	{255,   0,   1},
	{255,   1,   0},
	{255,   2,   0},
	{255,   3,   0},
	{255,   4,   0},
	{255,   5,   0},
	{255,   6,   0},
	{255,   7,   0},
	{255,   8,   0},
	{255, 255,   0},
};

static const byte _industry_anim_offs[] = {
	255,   0,   0,   0,   2,   4,   6,   8,  10,   9,
	  7,   5,   3,   1, 255,   0,   0,   0,   2,   4,
	  6,   8,  10,   9,   7,   5,   3,   1, 255,   0,
	  0,   0,   2,   4,   6,   8,  10,   9,   7,   5,
	  3,   1, 255,   0,   0,   0,   2,   4,   6,   8,
	 10,   9,   7,   5,   3,   1, 255,   0,   0,   0,
	  2,   4,   6,   8,  10,   9,   7,   5,   3,   1
};

static const byte _industry_anim_offs_2[] = {
	68, 69, 71, 74, 77, 80, 83, 85, 86, 86,
	86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
	86, 86, 85, 84, 83, 82, 81, 80, 79, 78,
	77, 76, 75, 74, 73, 72, 71, 70, 69, 68,
};

static const byte _coal_plant_sparks_x[] = {11, 11, 14, 13, 18, 15};
static const byte _coal_plant_sparks_y[] = {23, 11,  6,  3,  1,  0};

/* next frame in an animation */
#define N 255
static const byte _industry_section_animation_next[] = {
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   16,  N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   129, N,   N,   N,   N,   N,
135, N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,
};

/* animation to start when goods is produced */
static const byte _industry_produce_section[] = {
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
17,  N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   130, N,   N,   N,   N,   N,   136,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,   N,
N,   N,   N,   N,   N,   N,   N,
};

#undef N