/*-- 
	Settlement
	Author: Maikel
	
	Landscape suited for testing all kinds of settlement concepts.
--*/

// 
overlay Mat {				
	algo=rndchecker; a=8;
	zoomX=-50; zoomY=-50;
	turbulence=100; loosebounds=1;
};

// Fills the specified region with some random materials.
overlay MatFiller {
	overlay { mat=Earth; tex=earth; loosebounds=1; };
	Mat { mat=Granite; tex=granite; a=25; };
	Mat { mat=Ore; tex= ore; a=20; };
	Mat { mat=Tunnel; tex=tunnel; a=20; };
	Mat { mat=Rock; tex=rock; a=20; };
	Mat { mat=Sulphur; tex=sulphur; a=20; };
	Mat { mat=Gold; tex=gold; a=20; };
	Mat { mat=Coal; tex=coal; a=20; };
	Mat { mat=Tunnel; tex=tunnel; a=20; };
	Mat { mat=Earth; tex=earth_dry; };
	Mat { mat=Earth; tex=earth_rough; };
};

// A map with sky islands, a lake and some resources.
map Settlement {
	// Raise water level.
	overlay {
		mat=Water; tex=water;
		x=0; wdt=100; y=60; hgt=40;
	};
	// Sin algorithm to create a lake.
	overlay {
		mat=Earth; tex=earth;
		algo=sin;
		ox=30; oy=55;
		zoomX=80; zoomY=-10;
		MatFiller;
		MatFiller;
	};
	// Sky islands.
	overlay {
		x=5; wdt=90; y=10; hgt=30;
		algo=rndchecker; a=4;
		zoomX=-20; zoomY=10;
		turbulence=100; loosebounds=1;
	} |	overlay {
		x=5; wdt=90; y=10; hgt=30;
		algo=rndchecker; a=5;
		zoomX=-20; zoomY=10;
		turbulence=100; loosebounds=1;
		MatFiller;
	};
};