FANDOM


Carpenters solifuge 1

Custom Spritesets Edit

Carpentry Edit

Ok, experimenting to see how spritesets can best be handled. Lets see how it works out 8-)

This is a slightly modified version of Solifuge's carpentry, from the forums

The image on the right needs to go into the buildings folder, named Carpenters_solifuge_1.png

Then replace the Carpenter.xml file with the following:

<?xml version="1.0" ?>

<building name="Carpentry" gameID="carpenters_workshop" file="buildings/Carpenters_solifuge_1.png">

	<include file="wsUpperBorder.xml"/>

	<!-- benches block -->
	<if>
		<!-- replace this with position index if required -->
		<and>
			<BuildingOccupancy value="3" />
			<PositionIndex value=8 />
		</and>
		<if>
			<MaterialType value="Wood" />
			<rotate>
				<sprite index = 42 />
				<sprite index = 43 />
				<sprite index = 41 />
				<sprite index = 40 />
			</rotate>
		</if>
		<else>
			<MaterialType value="Metal"/>
			<rotate>
				<sprite index = 50 />
				<sprite index = 51 />
				<sprite index = 49 />
				<sprite index = 48 />
			</rotate>
		</else>
		<else>
			<MaterialType value="GreenGlass"/>
			<rotate>
				<sprite index = 58 />
				<sprite index = 59 />
				<sprite index = 57 />
				<sprite index = 56 />
			</rotate>
		</else>
		<else>
			<or>
				<MaterialType value="ClearGlass"/>
				<MaterialType value="CrystalGlass"/>
			</or>
			<rotate>
				<sprite index = 54 />
				<sprite index = 55 />
				<sprite index = 53 />
				<sprite index = 52 />
			</rotate>
		</else>
		<else>
			<rotate>
				<sprite index = 46 />
				<sprite index = 47 />
				<sprite index = 45 />
				<sprite index = 44 />
			</rotate>
		</else>
	</if>
	<else>
		<and>
			<BuildingOccupancy value="3" />
			<PositionIndex value=3 />
		</and>
		<if>
			<MaterialType value="Wood" />
			<rotate>
				<sprite index = 63 />
				<sprite index = 61 />
				<sprite index = 62 />
				<sprite index = 60 />			
			</rotate>
		</if>
		<else>
			<rotate>
				<sprite index = 67 />
				<sprite index = 65 />
				<sprite index = 66 />
				<sprite index = 64 />
			</rotate>
		</else>
	</else>
	<else>
		<and>
			<BuildingOccupancy value="3" />
			<PositionIndex value=6 />
		</and>	
		<if>
			<MaterialType value="Wood" />
			<rotate>
				<sprite index = 62 />
				<sprite index = 60 />
				<sprite index = 63 />
				<sprite index = 61 />
			</rotate>
		</if>
		<else>
			<rotate>
				<sprite index = 66 />
				<sprite index = 64 />
				<sprite index = 67 />
				<sprite index = 65 />
			</rotate>
		</else>
	</else>	
	<!-- end benches block -->	

	<!-- contents -->
	
	<if>
		<PositionIndex value=2 />
		<sprite index = 81 />
	</if>
	
	<if>
		<PositionIndex value=0 />
		<sprite index = 80 />
	</if>	
	
	<if><never/>
	</if>
	<include file="ws3x3Blueprint.xml"/>
	<include file="wsLowerBorder.xml"/>
	
</building>