<?xml version="1.0" standalone="no" ?>

<unit>

	<!-- *** parameters *** -->
	<parameters>
		<size value="2" />
		<height value="1" />
		<max-hp value="3000" regeneration="0"/>
		<max-ep value="0" />
		<armor value="25" />
		<armor-type value="metal"/>				
		<sight value="5" />
		<time value="50" />
		<multi-selection value="false" />
		<cellmap value="false"/>
		<levels/>
		<fields>
			<field value="land" />
		</fields>
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="false" />
		<unit-requirements>
			<unit name="fungus_farm" />
			<unit name="hoard" />
			<unit name="fire_totem" />
		</unit-requirements>
		<upgrade-requirements />
		<resource-requirements>
			<resource name="gold" amount="150"/>
			<resource name="wood" amount="150"/>
			<resource name="stone" amount="200"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/forge_totem.png"/>
		<image-cancel path="../fungus_farm/images/cancel.png"/>
		<meeting-point value="true" image-path="../fungus_farm/images/meeting.png"/>
		<selection-sounds enabled="false"/>
		<command-sounds enabled="false"/>
	</parameters>
	
	<!-- *** skills *** -->
	<skills>

		<skill>
			<type value="be_built" />
			<name value="be_built_skill"/>		
			<ep-cost value="0" />
			<speed value="120"/>
			<anim-speed value="50" />
			<animation path="models/forge_totem.g3d" />
			<sound enabled="false" />
		</skill>
		
		<skill>
			<type value="stop" />
			<name value="stop_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="50" />
			<animation path="models/forge_totem.g3d" />
			<sound enabled="false" />
			<particles value="true" start-time="0.0" end-time="1.0">
				<particle-file path="smoke_particles.xml"/>
				<particle-file path="fire_particles.xml"/>
			</particles>
		</skill>	
			
		
		<skill>
			<type value="die" />
			<name value="die_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/forge_totem.g3d" />
			<sound enabled="false" start-time="0"/>		
			<fade value="false"/>
		</skill>

		<skill>
			<type value="produce"/>
			<name value="produce_skill"/>	
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/forge_totem.g3d" />
			<sound enabled="false" />
		</skill>	

                <skill>
			<type value="upgrade"/>
			<name value="upgrade_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="30"/>
			<animation path="models/forge_totem.g3d"/>
			<sound enabled="false"/>
		</skill>


	</skills>
	
	<!-- *** commands *** -->
	<commands>


		<command>
			<type value="produce"/>
			<name value="train_sapper" />
			<image path="../archer/images/archer.png" />
			<unit-requirements />
			<upgrade-requirements />
			<produce-skill value="produce_skill"/>
			<produced-unit name="sapper"/>
		</command>

		<command>
			<type value="produce"/>
			<name value="forge_cannon" />
			<image path="../archer/images/archer.png" />
			<unit-requirements />
			<upgrade-requirements />
			<produce-skill value="produce_skill"/>
			<produced-unit name="cannon_team"/>
		</command>

                <command>
			<type value="upgrade"/>
			<name value="forge_troll_armour"/>
			<image path="../../upgrades/troll_armour/images/troll_armour.png"/>
			<unit-requirements>
				<unit name="fire_totem"/>
			</unit-requirements>
			<upgrade-requirements/>
			<upgrade-skill value="upgrade_skill"/>
			<produced-upgrade name="troll_armour"/>
		</command>

                <command>
			<type value="upgrade"/>
			<name value="clockwork"/>
			<image path="../../upgrades/clockwork/images/clockwork.png"/>
			<unit-requirements>
				<unit name="fire_totem"/>
			</unit-requirements>
			<upgrade-requirements/>
			<upgrade-skill value="upgrade_skill"/>
			<produced-upgrade name="clockwork"/>
		</command>	
                	
                

	</commands>
 
</unit>
