"use strict";
/*
sunken original Bay Shrine; classical landchild architecture
*/
var DATA_SDS_PALETTE_INIT = DATA_SDS_PALETTE_INIT || {};
DATA_SDS_PALETTE_INIT["bayshrine"] = function(a,w,g,d,n){ // the name of the palette and the corresponding terrain sheet png
	return {
		width : 3, // pow(2,width) = tiles in a row
		height : 3, // pow(2,height) = tiles in a column; <= width
		//sheetImg: "whatever", // override name of the terrain sheet image, if needed
		minFeatureWidth: 4, // callout that some details are <16px wide
		minFeatureHeight: 4, // callout that some details are <16px tall
		detailMaps : [ // terrain detail maps used by tiles in this palette
			[	// 22.5-degree diagonal upper-left to lower-right; left half

				[g,g,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,w,w,w,w,w,w,w,w,w,w],

				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g]
			],
			[	// 22.5-degree diagonal upper-left to lower-right; right half
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],

				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],

				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,w,w,w,w,w,w,w,w,w,w],

				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g]
			],
			[	// 22.5-degree diagonal lower-left to upper-right; left half
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],

				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],

				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,g,g],	
				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],
				[w,w,w,w,w,w,w,w,w,w,g,g,g,g,g,g],

				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g]
			],
			[	// 22.5-degree diagonal lower-left to upper-right; right half
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,g,g],	
				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],
				[w,w,w,w,w,w,w,w,w,w,g,g,g,g,g,g],

				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,g,g,g,g,g,g,g,g,g,g,g,g,g,g],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g]
			],

			[	// steps upper-left to lower-right
				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],

				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],

				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g]
			],
			[	// steps lower-left to upper-right
				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],
				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],
				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],
				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],

				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g],

				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g]
			],

			[	// low ceiling
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],

				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w]
			],

			[	// crumbling left
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],

				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],

				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],
				[g,g,g,g,w,w,w,w,w,w,w,w,w,w,w,w],

				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w],
				[g,g,g,g,g,g,g,g,w,w,w,w,w,w,w,w]
			],
			[	// crumbling right
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],

				[w,w,w,w,w,w,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,g,g,g,g,g,g,g,g,g,g],

				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],
				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],
				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],
				[w,w,w,w,w,w,w,w,w,w,w,w,g,g,g,g],

				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g],
				[w,w,w,w,w,w,w,w,g,g,g,g,g,g,g,g]
			],
			[	// crumbling lower-left
				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,w,w,w,w],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,w],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g]
			],
			[	// crumbling lower-right
				[w,w,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,g,g,g,g,g,g,g,g,g,g,g,g,g,g],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],

				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],
				[w,w,w,w,g,g,g,g,g,g,g,g,g,g,g,g],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g]
			],

			[	// brick pile
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],

				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],
				[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],

				[w,w,w,g,g,g,g,g,g,g,g,w,w,w,w,w],
				[w,w,w,g,g,g,g,g,g,g,g,w,w,w,w,w],
				[w,w,w,g,g,g,g,g,g,g,g,w,w,w,w,w],
				[w,w,w,g,g,g,g,g,g,g,g,w,w,w,w,w],

				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g],
				[g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g]
			],


		],
		terrain : [ // the terrain values of each tile in this palette
			w,w,w,w,w,w,w,w,
			w,w,w,w,w,w,w,w,
			g,w,g,g,w,w,w,w,
			w,w,w,w,w,w,w,w,
			d,d,g,g,d,d,d,d,
			g,g,g,g,g,g,w,w,
			d,w,d,d,d,d,w,w,
			d,d,d,w,w,w,w,w
		],
		detail : [ // the detail map indices (into detailMaps), if any, for each tile in this palette
			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,
			2, 3, n, n, 0, 1, 5, 4,
			n, n, n, n, n, n, n, n,
			7, n, 8, 6, 6, 6, n, n,
			9,11,10, n, n, n, n, n
		]
	};
};
