<?xml version="1.0" ?>



<building name="Forge" game_type="Workshop" game_subtype="MetalsmithsForge" file="workshop.png"> 

	<!-- benches wall -->
	<if> 
		<!-- replace this with position index if required -->
		<BuildingOccupancy value="3" />	
		<!-- benches -->
		<include file="wsFPTub.xml"/>
	</if>
	<else>
		<HaveFloor/>
		<include file="wsUpperBorder.xml"/>
	</else>
	<!-- end benches wall -->
 
	<!-- contents -->
	
	<if>
		<and>
			<not><BuildingOccupancy value="1" /></not>
			<PositionIndex value=7 />
		</and>
		<if>
			<HaveFloor/>
			<rotate>
				<sprite index=175 color="building" pattern_index="1" />
				<sprite index=176 color="building" pattern_index="1" />
				<sprite index=175 color="building" pattern_index="1" />
				<sprite index=176 color="building" pattern_index="1" />
			</rotate>
		</if>
		<else>
			<rotate>
				<sprite index=177 color="building" pattern_index="1" />
				<sprite index=178 color="building" pattern_index="1" />
				<sprite index=177 color="building" pattern_index="1" />
				<sprite index=178 color="building" pattern_index="1" />
			</rotate>
			<rotate>
				<sprite index=175 offsetx=2 />
				<sprite index=176 offsetx=2 />
				<sprite index=175 offsetx=2 />
				<sprite index=176 offsetx=2 />
			</rotate>
		</else>
	</if>		
	
	<else>
		<and>
			<HaveFloor />
			<PositionIndex value=0 />
		</and>
		<rotate>
			<sprite index = 126 />
			<sprite index = 127 />
			<sprite index = 128 />
			<sprite index = 129 />
		</rotate>
	</else>
	
	<if>
		<BuildingOccupancy value="3" />
		<if>
			<PositionIndex value=3 />
			<sprite index=156/>
		</if>
		<if>
			<PositionIndex value=5 />
			<sprite index=159/>
		</if>		
	</if>	
	<else>
		<not><HaveFloor/></not>
		<empty/>
	</else>
	
	<include file="ws3x3Blueprint.xml"/>
	<include file="wsLowerBorder.xml"/>
	
</building> 
