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

<unit>

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

	<parameters>
		<size value="2"/>
		<height value="3"/>
		<max-hp value="2400" regeneration="3"/>
		<max-ep value="0"/>
		<armor value="50"/>	
		<armor-type value="wood"/>				
		<sight value="16"/>
		<time value="180"/>	
		<multi-selection value="false"/>	
		<cellmap value="false"/>
		<levels>
			<level name="elite" kills="15"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="military_camp"/>
		</unit-requirements>
		<upgrade-requirements>
			<upgrade name="bless_of_minerva"/>
		</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="../wartime_mechanic/sounds/technician_select1.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_select2.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_select3.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_select4.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_select5.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_select6.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_select7.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_select8.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="../wartime_mechanic/sounds/technician_ack1.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack2.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack3.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack4.wav"/>		
			<sound path="../wartime_mechanic/sounds/technician_ack5.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack6.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack7.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack8.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack9.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack10.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack11.wav"/>		
			<sound path="../wartime_mechanic/sounds/technician_ack12.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack13.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack14.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack15.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack16.wav"/>		
			<sound path="../wartime_mechanic/sounds/technician_ack17.wav"/>
			<sound path="../wartime_mechanic/sounds/technician_ack18.wav"/>
			<sound path="../wartime_mechanic/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/ballstac_sit.g3d"/>
			<sound enabled="false"/>
		</skill>
 
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="185"/>
			<anim-speed value="150"/>
			<animation path="models/ballstac_sit.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="40"/>
			<anim-speed value="40"/>
			<animation path="models/ballstac_attack.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/ab_attack1.wav"/>
				<sound-file path="sounds/ab_attack2.wav"/>
			</sound> 
			<attack-strenght value="195"/>
			<attack-var value="150"/>
			<attack-range value="14"/>
			<attack-type value="piercing"/>
			<attack-start-time value="0.3"/>
			<attack-fields>
				<field value="air"/>
				<field value="land"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="../archer/sounds/arrow_hit1.wav"/>
					<sound-file path="../archer/sounds/arrow_hit2.wav"/>
					<sound-file path="../archer/sounds/arrow_hit3.wav"/>
					<sound-file path="../archer/sounds/arrow_hit4.wav"/>
					<sound-file path="../archer/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/ballstac_die.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/ab_die1.wav"/>
				<sound-file path="sounds/ab_die2.wav"/>
				<sound-file path="sounds/ab_die3.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>


	</skills>
	
	<commands>
		
		<command>
			<type value="stop"/>
			<name value="attack_off"/>
			<image path="images/air_ballista_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>
