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

<unit>
	<parameters>
		<size value="1"/>
		<height value="1"/>
		<max-hp value="1400" regeneration="1"/>
		<max-ep value="0"/>
		<armor value="15"/>
		<armor-type value="organic"/>
		<sight value="15"/>
		<time value="40"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="ancient" kills="8"/>
		</levels>
		<fields>
			<field value="air"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="bamboo_hut"/>
		</unit-requirements> 
		<upgrade-requirements>
			<upgrade name="animal_training"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="250"/>
			<resource name="wood" amount="200"/>
			<resource name="food" amount="2"/>				
		</resource-requirements>
		<resources-stored/>
		<image path="images/dragon.bmp"/>
		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel3.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel3.wav"/>
		</command-sounds>

	</parameters>


	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="75"/>
			<animation path="models/tcan_sit.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="250"/>
			<anim-speed value="175"/>
			<animation path="models/tcan_sit.g3d"/>
			<sound enabled="false"/>
		</skill>	

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="70"/>
			<anim-speed value="80"/>
			<animation path="models/tcan_a.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/a1.wav"/>
				<sound-file path="sounds/a2.wav"/>
			</sound>
			<attack-strenght value="230"/>
			<attack-var value="40"/>
			<attack-range value="8"/>
			<attack-type value="energy"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.4"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
				<sound-file path="sounds/dragon_hit1.wav"/>
				<sound-file path="sounds/dragon_hit2.wav"/>
				<sound-file path="sounds/dragon_hit3.wav"/>
				<sound-file path="sounds/dragon_hit4.wav"/>
			</sound>
			</projectile>
			<splash value="true">
				<radius value="1"/>
				<damage-all value="false"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>

	
		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="50"/>
			<animation-random-cycle-maxcount value="1" />
			<animation path="models/tcan_d1.g3d"/>
			<animation path="models/tcan_d2.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/die1.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>

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

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


		<command>
			<type value="attack"/>
			<name value="breath"/>
			<image path="images/dragon_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="../archer/images/tech_hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

	</commands>
</unit>
