map{ regiondef{

	// 0 make-apartments // EXAMPLE... apartments with no door!

	: pick-building

		' curbuild ++

		// DO A SPECIAL LOT if it's set up
		try-special-build if then;

		// Bottom 3 rows may be trashy, bottom row definitely trashy
		rowsleft 1 <= rnd5050 and if 0
		else
			rowsleft 2 <= if 0 else auto-picklocid then
		then

		dup if
			addloc last-loc-pick-script evaluate
		else drop
			// no building type picked, do a trashed DMZ location or whatever

			"trashed" $picklocid addloc
			make-a-house // TEMP: put what you want here

			// Probably trash up the outside entrance
			75 %chance if block-last-build-door then
		then
	;

	: pick-lots
		blocks-init
			6 to blockh
			2 to maxrows
			5 to streeth
			0.35 to greenspace
			1 3 rnd to grassylots
		blocks-start

		pavement

		begin canplot? while

			pick-building next-plot

			canplot? 0= if break then
			block-middle? if LOT_GRASS lastlot = if 1 else 0 then aplot then
		repeat

		street-junk
	;

	: building-pick-setup
		0 to curbuild
		5diff %zombs pavement pick-lots
	;
} }

// Pass the location ID in to the following to create a new building
//		prefab{ mrand ( style ) 0 2 rnd 2 * 5 + ( width ) 0 ( depth ) theme-generic-building }
