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

<unit>
	<parameters>
		<size value="2"/>
		<height value="2"/>
		<max-hp value="3200" regeneration="1"/>
		<max-ep value="0"/>
		<armor value="30"/>	
		<armor-type value="organic"/>				
		<sight value="15"/>
		<time value="100"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="dangerous" kills="8"/>
			<level name="elite" kills="16"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="bamboo_hut"/>
			<unit name="training_hut"/>
			<unit name="advanced_hut"/>
		</unit-requirements>
		<upgrade-requirements>
			<upgrade name="animal_training"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="wood" amount="250"/>
			<resource name="gold" amount="350"/>
			<resource name="food" amount="2"/>						
		</resource-requirements>
		<resources-stored/>
		<image path="images/elephant_rider.bmp"/>
		<image-cancel path="../spearman/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel1.wav"/>
			<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="sounds/sel2.wav"/>
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel1.wav"/>
			<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="15"/>
			<animation path="models/elephantrider_sit.g3d"/>
			<sound enabled="false"/>
		</skill>

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

		<skill>
			<type value="move"/>
			<name value="charge_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="110"/>
			<animation path="models/elephantrider_walk.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation path="models/elephantrider_attack.g3d"/>
			<sound enabled="true" start-time="0.20">
				<sound-file path="sounds/a1.wav"/>
				<sound-file path="sounds/attack3.wav"/>
				<sound-file path="sounds/attack4.wav"/>
			</sound> 
			<attack-strenght value="500"/>
			<attack-var value="100"/>
			<attack-range value="2"/>
			<attack-type value="slashing"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_a_skill"/>		
			<ep-cost value="0"/>
			<speed value="80"/>
			<anim-speed value="50"/>
			<animation path="models/elephantrider_aa.g3d"/>
			<sound enabled="true" start-time="0.82">
				<sound-file path="../dart_thrower/sounds/attack1.wav"/>
				<sound-file path="../dart_thrower/sounds/attack2.wav"/>
				<sound-file path="../dart_thrower/sounds/attack3.wav"/>
			</sound> 
			<attack-strenght value="380"/>
			<attack-var value="20"/>
			<attack-range value="12"/>
			<attack-type value="piercing"/>
			<attack-fields>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.6"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="false">
				</sound>
			</projectile>
			<splash value="false"/>
		</skill>

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

		<skill>
			<type value="harvest"/>
			<name value="harvest_wood_skill"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="20"/>
			<animation path="models/elephantrider_collect.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="../slave/sounds/worker_harvest_wood1.wav"/>
				<sound-file path="../slave/sounds/worker_harvest_wood2.wav"/>
				<sound-file path="../slave/sounds/worker_harvest_wood3.wav"/>
			</sound>
		</skill>	

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="40"/>
			<animation path="models/elephantrider_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="harvest"/>
			<name value="harvest_wood"/>
			<image path="../slave/images/worker_harvest_wood.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<harvest-skill value="harvest_wood_skill"/>
			<stop-loaded-skill value="stop_skill"/>
			<move-loaded-skill value="move_wood_skill"/>
			<harvested-resources>
				<resource name="wood"/>			
			</harvested-resources>
			<max-load value="150"/>
			<hits-per-unit value="1"/>				
		</command-->
		
		<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="attack"/>
			<name value="attack"/>
			<image path="images/swordman_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="charge_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="attack"/>
			<image path="images/knife.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="charge_skill"/>
			<attack-skill value="attack_a_skill"/>
		</command>

	</commands>
</unit>
