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

<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="720" regeneration="2"/>
		<max-ep value="0" regeneration="0"/>
		<armor value="25"/>	
		<armor-type value="leather"/>				
		<sight value="13"/>
		<time value="10"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="elite" kills="5"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="145"/>
			<resource name="wood" amount="80"/>
			<resource name="food" amount="1"/>						
		</resource-requirements>
		<resources-stored/>
		<image path="images/priest.bmp"/>
		<image-cancel path="../spearman/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="../archer/sounds/sel1.wav"/>
			<sound path="../archer/sounds/sel2.wav"/>
			<sound path="../archer/sounds/sel3.wav"/>
			<sound path="../archer/sounds/sel4.wav"/>
			<sound path="../archer/sounds/sel5.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="../archer/sounds/ack1.wav"/>
			<sound path="../archer/sounds/ack2.wav"/>
			<sound path="../archer/sounds/ack3.wav"/>
			<sound path="../archer/sounds/ack4.wav"/>
			<sound path="../archer/sounds/ack5.wav"/>
			<sound path="../archer/sounds/ack6.wav"/>
			<sound path="../archer/sounds/ack7.wav"/>
		</command-sounds>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="55"/>
			<animation path="models/monkeytrainer_stand.g3d"/>
			<sound enabled="false"/>
		</skill>

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

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

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

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="70"/>
			<anim-speed value="70"/>
			<animation path="models/monkeytrainer_attack.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="../archer/sounds/archer_attack1.wav"/>
				<sound-file path="../archer/sounds/archer_attack2.wav"/>
				<sound-file path="../archer/sounds/archer_attack3.wav"/>
				<sound-file path="../archer/sounds/archer_attack4.wav"/>
			</sound>
			<attack-strenght value="130"/>
			<attack-var value="35"/>
			<attack-range value="9"/>
			<attack-type value="slashing"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.3"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="../archer/sounds/arrow_hit1.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="1"/>
				<damage-all value="false"/>
				<particle value="false"/>
			</splash>
		</skill>

		<!--skill>
			<type value="move"/>
			<name value="charge_skill"/>		
			<ep-cost value="0"/>
			<speed value="220"/>
			<anim-speed value="125"/>
			<animation path="models/spearman_charging.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="80"/>
			<animation path="models/spearman_standing.g3d"/>
			<sound enabled="false"/>
		</skill-->	

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="90"/>
			<anim-speed value="50"/>
			<animation path="models/monkeytrainer_die.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="../archer/sounds/die1.wav"/>
				<sound-file path="../archer/sounds/die2.wav"/>
				<sound-file path="../archer/sounds/die3.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>						

	</skills>
	
	<commands>
		
		<command>
			<type value="stop"/>
			<name value="stop"/>
			<image path="../spearman/images/tech_stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

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

		<command>
			<type value="produce"/>
			<name value="produce_chimpanzee" />
			<image path="../chimpanzee/images/daemon.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<produce-skill value="produce_skill"/>
			<produced-unit name="chimpanzee"/>
		</command>
                
		<command>
			<type value="attack"/>
			<name value="throw_spear"/>
			<image path="images/priest_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

		
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="../spearman/images/tech_hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements>
				<!--upgrade name="training_field"/-->
			</upgrade-requirements>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

		<command>
			<type value="upgrade"/>
			<name value="research_monkey_training" />
			<image path="../../upgrades/monkey_training/images/stables.bmp" />
			<unit-requirements>
			</unit-requirements>
			<upgrade-requirements />
			<upgrade-skill value="upgrade_skill"/>
			<produced-upgrade name="monkey_training"/>
		</command>

		<!--command>
			<type value="morph"/>
			<name value="promote_to_guard"/>
			<image path="../guard/images/guard.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "guard"/>
			<discount value="60"/>
		</command-->	

	</commands>
</unit>
