<unit>
	<parameters>
		<size value="1"/>
		<height value="3"/>
		<max-hp value="700" regeneration="0"/>
		<max-ep value="0"/>
		<armor value="20"/>	
		<armor-type value="leather"/>				
		<sight value="15"/>
		<time value="60"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="veteran" kills="5"/>
			<level name="elite" kills="10"/>
			<level name="master" kills="20"/>
			<level name="elder" kills="35"/>
			<level name="legendary" kills="60"/>
		</levels>
		<fields>
			<field value="land"/>
			<field value="air"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="barracks"/>
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="wood" amount="50"/>
			<resource name="gold" amount="100"/>
			<resource name="food" amount="1"/>				
		</resource-requirements>
		<resources-stored/>
		<image path="images/archer.png"/>
		<image-cancel path="images/order_cancel.png"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/archer_select1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select7.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select8.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select9.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select10.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_select11.wav"/>

		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/archer_ack1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack7.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack8.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack9.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack10.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack11.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack12.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack13.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack14.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archer_ack15.wav"/>
		</command-sounds>
	</parameters>

	<skills>	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="45"/>
			<animation path="models/archer_standing.g3d"/>
			<sound enabled="false"/>
		</skill>		
		<skill>
			<type value="stop"/>
			<name value="remove_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="80"/>
			<animation path="models/archer_standing.g3d"/>
			<sound enabled="false"/>
			<attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="1"/>
				<target value="all">				
					<unit-type name="stake"/>													
				</target>
				<max-hp value="-600"/>
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="0"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false"/>
			</attack-boost>			
		</skill>				
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="220"/>
			<anim-speed value="125"/>
			<animation path="models/archer_walking.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="build"/>
			<name value="build_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation path="models/archer_standing.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/worker_harvest_wood1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_harvest_wood2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_harvest_wood3.wav"/>
			</sound>
		</skill>		
		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="50"/>
			<animation path="models/archer_attacking.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="$COMMONDATAPATH/sounds/archer_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archer_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archer_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archer_attack4.wav"/>
			</sound>
			<attack-strenght value="100"/>
			<attack-var value="50"/>
			<attack-range value="10"/>
			<attack-type value="piercing"/>
			<attack-start-time value="0.5"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="$COMMONDATAPATH/sounds/arrow_hit1.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/arrow_hit2.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/arrow_hit3.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/arrow_hit4.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/arrow_hit5.wav"/>
				</sound>
			</projectile>
			<splash value="false"/>
		</skill>
		<skill>
			<type value="attack"/>
			<name value="fire_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="50"/>
			<animation path="models/archer_attacking.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="/sounds/archer_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archer_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archer_attack4.wav"/>
			</sound>
			<attack-strenght value="110"/>
			<attack-var value="50"/>
			<attack-range value="10"/>
			<attack-type value="energy"/>
			<attack-start-time value="0.5"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="fireparticle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="/sounds/firearrowhit1.wav"/>
					<sound-file path="/sounds/firearrowhit2.wav"/>
					<sound-file path="/sounds/firearrowhit3.wav"/>
					<sound-file path="/sounds/firearrowhit4.wav"/>
				</sound>
			</projectile>
			<splash value="false"/>
		</skill>
		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="400"/>
			<anim-speed value="50"/>
			<animation path="models/archer_standing.g3d"/>
			<sound enabled="false"/>
		</skill>		
		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/archer_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/archer_die1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archer_die2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archer_die3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archer_die4.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>
	</skills>

	<commands>		
		<command>
			<type value="stop"/>
			<name value="stop"/>
			<image path="images/order_halt.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>
		<command>
			<type value="move"/>
			<name value="move"/>
			<image path="images/order_move.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>
		<command>
			<type value="attack"/>
			<name value="attack"/>
			<image path="images/archer_attack2.png"/>
			<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="images/order_hold.png"/>
			<unit-requirements/>
			<upgrade-requirements>
				<upgrade name="training_field"/>
			</upgrade-requirements>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>
		<command>
			<type value="attack"/>
			<name value="attack_with_fire"/>
			<image path="images/archer_fire_attack2.png"/>
			<unit-requirements/>
			<upgrade-requirements>				
				<upgrade name="fire_arrows"/>			
			</upgrade-requirements>
			<move-skill value="move_skill"/>
			<attack-skill value="fire_skill"/>
		</command>		
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position_with_fire"/>
			<image path="images/order_hold_special.png"/>
			<unit-requirements/>
			<upgrade-requirements>
				<upgrade name="training_field"/>
				<upgrade name="fire_arrows"/>
			</upgrade-requirements>
			<stop-skill value="stop_skill"/>
			<attack-skill value="fire_skill"/>
		</command>		
		<command>
			<type value="build"/>
			<name value="plant_stakes"/>
			<image path="images/stakes.png"/>
			<unit-requirements>
				<unit name="guild"/>
			</unit-requirements>		
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
                <building name="stake"/>				
			</buildings>
			<start-sound enabled="false"/>
			<built-sound enabled="true">
				<sound-file path="$COMMONDATAPATH/sounds/archer_ack5.wav"/>	
				<sound-file path="$COMMONDATAPATH/sounds/archer_ack12.wav"/>					
			</built-sound>	
		</command>
		<command>
			<type value="stop"/>
			<name value="remove_stakes"/>
			<image path="images/no_stakes.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="remove_skill"/>
		</command>
		<command>
			<type value="morph"/>
			<name value="mount_horse"/>
			<image path="../horse_archer/images/horse_archer.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name="horse_archer"/>
			<discount value="40"/>
		</command>		
	</commands>
</unit>
