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

<unit>

	<!-- *** parameters *** -->

	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="500" regeneration="2"/>
		<max-ep value="0"/>
		<armor value="0"/>
		<armor-type value="organic"/>					
		<sight value="9"/>
		<time value="40"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels/>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="60"/>
			<resource name="food" amount="3"/>			
		</resource-requirements>
		<resources-stored/>
		<image path="images/slave.png"/>
		<image-cancel path="../fungus_farm/images/cancel.png"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="false"/>
		<command-sounds enabled="false"/>
	</parameters>


	<!-- *** skills *** -->

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="55"/>
			<animation path="models/slave_idle.g3d"/>
			<animation path="models/slave_idle.g3d"/>
			<animation path="models/slave_idle.g3d"/>
			<animation path="models/slave_idle.g3d"/>
			<animation path="models/slave_idle.g3d"/>
			<animation path="models/slave_idle.g3d"/>
			<animation path="models/slave_idle.g3d"/>
			<animation path="models/slave_idle.g3d"/>
			<animation path="models/slave_idle2.g3d"/>
			<animation path="models/slave_idle3.g3d"/>
			<animation path="models/slave_idle4.g3d"/>
			<animation path="models/slave_idle5.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="stop"/>
			<name value="stop_loaded_skill"/>		
			<ep-cost value="0"/>
			<speed value="75"/>
			<anim-speed value="70"/>
			<animation path="models/slave_loaded.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="stop"/>
			<name value="stop_loaded_wood_skill"/>		
			<ep-cost value="0"/>
			<speed value="75"/>
			<anim-speed value="70"/>
			<animation path="models/slave_loaded_wood.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="190"/>
			<anim-speed value="130"/>
			<animation path="models/slave_move.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_wood_skill"/>		
			<ep-cost value="0"/>
			<speed value="210"/>
			<anim-speed value="130"/>
			<animation path="models/slave_move_wood.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_gold_skill"/>		
			<ep-cost value="0"/>
			<speed value="210"/>
			<anim-speed value="130"/>
			<animation path="models/slave_move_mine.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_loaded_skill"/>		
			<ep-cost value="0"/>
			<speed value="190"/>
			<anim-speed value="100"/>
			<animation path="models/slave_move_loaded.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_loaded_wood_skill"/>		
			<ep-cost value="0"/>
			<speed value="190"/>
			<anim-speed value="100"/>
			<animation path="models/slave_move_loaded_wood.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="build"/>
			<name value="build_skill"/>		
			<ep-cost value="0"/>
			<speed value="105"/>
			<anim-speed value="100"/>
			<animation path="models/slave_move.g3d"/>
			<sound enabled="false" start-time="0.5"/>
		</skill>	
		
		<skill>
			<type value="harvest"/>
			<name value="mine_skill"/>		
			<ep-cost value="0"/>
			<speed value="225"/>
			<anim-speed value="90"/>
			<animation path="models/slave_mine.g3d"/>
			<sound enabled="false" start-time="0.5"/>
		</skill>	
		
		<skill>
			<type value="harvest"/>
			<name value="harvest_wood_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="90"/>
			<animation path="models/slave_chop.g3d"/>
			<sound enabled="false" start-time="0.5"/>
		</skill>				
		
		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="90"/>
			<anim-speed value="90"/>
			<animation path="models/slave_die.g3d"/>
			<animation path="models/slave_die2.g3d"/>
			<animation path="models/slave_die3.g3d"/>
			<animation path="models/slave_die4.g3d"/>
			<animation path="models/slave_die6.g3d"/>
			<animation path="models/slave_die7.g3d"/>
			<animation-random-cycle-maxcount value="1" />
			<sound enabled="true" start-time="0"/>		
			<fade value="false"/>
		</skill>						

	</skills>

	<!-- *** commands *** -->
	
	<commands>
		
		<command>
			<type value= "stop"/>
			<name value="stop"/>
			<image path="images/stop.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value= "move"/>
			<name value="move"/>
			<image path="images/move.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>

		<command>
			<type value= "build"/>
			<name value="build"/>
			<image path="images/build.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
				 <building name="hovel"/>
                                <building name="fungus_farm"/>
				<building name="hoard"/>
				<building name="war_totem"/>
				<building name="earth_totem"/>
				<building name="fire_totem"/>
				<building name="troll_totem"/>
				<building name="forge_totem"/>
				<building name="night_totem"/>
			</buildings>
			<start-sound enabled="false"/>
			<built-sound enabled="false"/>
		</command>

		<command>
			<type value="harvest"/>
			<name value="mine"/>
			<image path="images/harvest_gold.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_gold_skill"/>
			<harvest-skill value="mine_skill"/>
			<stop-loaded-skill value="stop_loaded_skill"/>
			<move-loaded-skill value="move_loaded_skill"/>
			<harvested-resources>
				<resource name="gold"/>	
				<resource name="stone"/>									
			</harvested-resources>
			<max-load value="25"/>
			<hits-per-unit value="1"/>				
		</command>

		<command>
			<type value="harvest"/>
			<name value="harvest_wood"/>
			<image path="images/harvest_wood.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_wood_skill"/>
			<harvest-skill value="harvest_wood_skill"/>
			<stop-loaded-skill value="stop_loaded_wood_skill"/>
			<move-loaded-skill value="move_loaded_wood_skill"/>
			<harvested-resources>
				<resource name="wood"/>									
			</harvested-resources>
			<max-load value="25"/>
			<hits-per-unit value="1"/>				
		</command>
		

	</commands>
</unit>
