Contains the wilderness map, with everything except for
the dynamically generated locations
(all non-cities listed in darkland.loc).
The map is constructed from tiles contained in two .pic files:
"mapicons.pic" and "mapicon2.pic".
Number of locations.
This word is stored high-byte first
Number of locations.
This word is stored high-byte first
File offsets to row data.
Map data.
This data is RLE compressed: each byte represents 1-7 map tiles.
The top three bits are the repeat count,
and are always at least one (001xxxxx).
The next bit is the palette set:
0 for "mapicons.pic",
1 for "mapicon2.pic".
The four least bits indicate which row the tile comes from in the palette set.
Which column the map tile comes from depends on the four diagonally adjacent tiles:
the 1's bit comes from the northwest tile's row's 8's bit;
the 2's bit comes from the northeast tile's row's 4's bit;
the 4's bit comes from the southwest tile's row's 2's bit;
the 8's bit comes from the southeast tile's row's 1's bit.