// uses hack/region-downtown-test.df
uses paul/region-layout.df

"../deathforth/rooms/reststop.txt" $load-rooms
"../deathforth/rooms/restroom.txt" $add-rooms

"events/exterior/rest-maker.df" $load	

location: reststop
		max-rooms: 4
		entry-tags: rest-entry
		script: set-theme-cabin
		post-script: 5diff %zombs

: restlootbig
	20diff %zombs
	3 4 rnd for skelscat next
	3 5 rnd for LLmisc next
	2 4 rnd for LLammo next
	4 8 rnd for LLkitchen next
	2 3 rnd for cheapweapons .drift next
;
		
		room-choice: rest-entry
			room-weight: 10
			room-count: 1
			room-script: ndx 
			room-post-script: startrest
			filter-only
		
		room-choice: restroom
			room-weight: 10
			room-count: 2
			room-script: nad 
			room-post-script: 10 %chance if randommag then
			
		room-choice: rest-info
			room-weight: 10
			room-count: 1
			room-script: nad 
			room-post-script: map{ room-papers } restlootbig

location: reststop
		max-rooms: 4
		entry-tags: rest-entry
		script: set-theme-cabin
		post-script: 5diff %zombs

		room-choice: rest-entry
			room-weight: 10
			room-count: 1
			room-script: ndx 
			room-post-script: startrest
			filter-only
		
		room-choice: restroom
			room-weight: 10
			room-count: 1
			room-script: nad 
			room-post-script: restlootbig

		room-choice: restroom
			room-weight: 10
			room-count: 1
			room-script: nad 
			
		room-choice: rest-info
			room-weight: 10
			room-count: 1
			room-script: nad 
			room-post-script: map{ room-papers } 10 %chance if randommag then

map{ regiondef{
			
: site-setup
	pavement
	restsmall
	5diff %zombs
;

region: reststop
	w: restmaker-layout layoutw
	h: restmaker-layout layouth 5 +
	script: timeofday o'clock

	loc-choice: reststop
		loc-weight: 1
		loc-count: 1

	post-script: site-setup

} }
