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

<unit>

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

	<parameters>
		<size value="2"/>
		<height value="3"/>
		<max-hp value="3000" regeneration="5"/>
		<max-ep value="0"/>
		<armor value="20"/>	
		<armor-type value="wood"/>				
		<sight value="15"/>
		<time value="180"/>	
		<multi-selection value="false"/>	
		<cellmap value="false"/>
		<levels>
			<level name="elite" kills="10"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="technodrome"/>
		</unit-requirements>
		<upgrade-requirements>
			<upgrade name="advanced_architecture"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="wood" amount="250"/>
			<resource name="gold" amount="200"/>
			<resource name="food" amount="1"/>				
		</resource-requirements>
		<resources-stored/>
		<image path="images/air_ballista.bmp"/>
		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/technician_select1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_select3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_select4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_select5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_select6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_select7.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_select8.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/technician_ack1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack4.wav"/>		
			<sound path="$COMMONDATAPATH/sounds/technician_ack5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack7.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack8.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack9.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack10.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack11.wav"/>		
			<sound path="$COMMONDATAPATH/sounds/technician_ack12.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack13.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack14.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack15.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack16.wav"/>		
			<sound path="$COMMONDATAPATH/sounds/technician_ack17.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack18.wav"/>
			<sound path="$COMMONDATAPATH/sounds/technician_ack19.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/air_ballista_standing.g3d"/>
			<sound enabled="false"/>
		</skill>
 
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="220"/>
			<anim-speed value="150"/>
			<animation path="models/air_ballista_standing.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/air_ballista_attacking.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/ab_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/ab_attack2.wav"/>
			</sound> 
			<attack-strenght value="200"/>
			<attack-var value="75"/>
			<attack-range value="15"/>
			<attack-type value="piercing"/>
			<attack-start-time value="0.3"/>
			<attack-fields>
				<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="true">
				<radius value="2"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>
		
		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/air_ballista_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/ab_die1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/ab_die2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/ab_die3.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>


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

		<command>
			<type value= "attack_stopped"/>
			<name value="attack_on"/>
			<image path="images/air_ballista_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<attack-skill value="attack_skill"/>
                        <stop-skill value="stop_skill"/>
		</command>
		
	</commands>
</unit>