
" 
:map 1 
:tags prestairs  
:size 6 8 
:off 9 1 
:tiles 
222222
233332
211112
211112
211112
211112
222222
333333

:map 2 
:tags stairsdown  
:size 6 18 
:off 10 0 
:tiles 
222222
233332
211112
211112
211112
221122
326623
026620
026620
026620
026620
026620
026620
026620
026620
021120
022220
033330
"
value SECRETLAB
SECRETLAB $parse-rooms

locdef{
		
	: secretlabend
		s random-edge-door "labroom" only-with-door
	;
	
	: tostairsdown
		s random-edge-door "stairsdown" only-with-door
		e random-edge-door "stairsdown" only-with-door
		w random-edge-door "stairsdown" only-with-door
		// random-door "stairsdown" only-with-door
	;
		
	: toprestairs
		random-door "prestairs" only-with-door
		random-door "prestairs" only-with-door
	;
		
	location: secretlab
		max-rooms: 11
		entry-tags: entry
		script: set-theme 
		pre-script: set-theme
		post-script: 10diff %zombs

		room-choice: entry
			room-weight: 1
			room-count: 1
			room-script: ndx
			room-post-script: dhall
			filter-only

		"
		room-choice: bathroom
			room-weight: 1
			room-count: 2
			room-script: nad floor-bath

		room-choice: bedroom
			room-weight: 50
			room-count: 2
			room-script: nad
			room-post-script: beddoor

		room-choice: kitchen
			room-weight: 20
			room-count: 1
			room-script: nad floor-kitchen

		room-choice: living
			room-weight: 100
			room-count: 1
			room-script: nad
			room-post-script: toprestairs
			
		room-choice: hall
			room-weight: 1
			room-count: 1
			room-script: ndx
			room-post-script: toprestairs

		room-choice: prestairs
			room-weight: 1
			room-count: 1
			room-script: nad gcloset-theme
			room-post-script: tostairsdown
			filter-only
			
		room-choice: stairsdown
			room-weight: 1
			room-count: 1
			room-script: nad gcloset-theme
			room-post-script: secretlabend
			filter-only
				
		room-choice: labroom
			room-weight: 1
			room-count: 1
			room-script: nad gcloset-theme
			room-post-script:
			filter-only
		"
		constant secretlab-base
		secretlab-base evaluate
		
	location: secretlab
		max-rooms: 11
		entry-tags: open1
		script: set-theme 
		pre-script: set-theme
		post-script: 10diff %zombs

		room-choice: open1
			room-weight: 1
			room-count: 1
			room-script: ndx
			room-post-script: dhall
			filter-only
			
		secretlab-base evaluate
				
}