<?xml version="1.0" standalone="no" ?>
<unit>
	<parameters>
		<size value="4" />
		<height value="2" />
		<max-hp value="5000" regeneration="1"/>
		<max-ep value="0" />
		<armor value="0" />
		<armor-type value="stone"/>
		<sight value="6" />
		<time value="100" />
		<multi-selection value="false" />
		<cellmap value="true">
			<row value="1011"/>
			<row value="0000"/>
			<row value="1011"/>
			<row value="1011"/>
		</cellmap>
		<levels/>
		<fields>
			<field value="land" />
		</fields>
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="false" />
		<unit-requirements>
			<unit name="main_hut" />
			<unit name="hut" />
			<unit name="large_hut" />
			<unit name="pen" />
		</unit-requirements>
		<upgrade-requirements />
		<resource-requirements>
			<resource name="gold" amount="250" />
			<resource name="wood" amount="350" />
		</resource-requirements>
		<resources-stored />
		<image path="images/barracks.bmp" />
		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="true" image-path="images/meeting_point.bmp"/>
		<selection-sounds enabled="true">
			<sound path="sounds/tech_click.wav" />
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/tech_click.wav" />
		</command-sounds>
	</parameters>
	
	<skills>
		<skill>
			<type value="stop"/>	
			<name value="stop_skill"/>
			<ep-cost value="0" />
			<speed value="50" />
			<anim-speed value="100" />
			<animation path="models/tree.g3d" />
			<sound enabled="false" />
		</skill>
		
		<skill>
			<type value="be_built" />	
			<name value="be_built_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/tree.g3d" />
			<sound enabled="false" />
		</skill>	
		
		<skill>
			<type value="upgrade"/>	
			<name value="upgrade_skill"/>	
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/tree.g3d" />
			<sound enabled="false" />
		</skill>
		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="80"/>
			<anim-speed value="80"/>
			<animation path="models/tree.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="/sounds/tower_attack1.wav"/>
				<sound-file path="/sounds/tower_attack2.wav"/>
				<sound-file path="/sounds/tower_attack3.wav"/>
				<sound-file path="/sounds/tower_attack4.wav"/>
				<sound-file path="/sounds/tower_attack5.wav"/>
				<sound-file path="/sounds/tower_attack6.wav"/>
			</sound>
			<attack-strenght value="200"/>
			<attack-var value="50"/>
			<attack-range value="15"/>
			<attack-type value="energy"/>
			<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" start-time="0">
				<sound-file path="/sounds/tower_hit1.wav"/>
				<sound-file path="/sounds/tower_hit2.wav"/>
				<sound-file path="/sounds/tower_hit3.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="produce"/>
			<name value="produce_skill"/>	
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/tree.g3d" />
			<sound enabled="false" />
		</skill>	
		
		<skill>
			<type value="die" />	
			<name value="die_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/tree.g3d" />
			<sound enabled="true" start-time="0">
				<sound-file path="../hut/sounds/tech_building_fall4.wav"/>
			</sound>			
			<fade value="true"/>
		</skill>

	</skills>
	
	<commands>
	
		<command>
			<type value="produce"/>
			<name value="produce_toucan" />
			<image path="../toucan/images/dragon.bmp" />
			<unit-requirements />
			<upgrade-requirements />
			<produce-skill value="produce_skill"/>
			<produced-unit name="toucan"/>
		</command>
		<command>
			<type value= "stop"/>
			<name value="attack_off"/>
			<image path="images/tower_of_souls_attack_off.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>
                <command>
			<type value="upgrade"/>
			<name value="research_birds"/>
			<image path="../../upgrades/birds/images/stables.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<upgrade-skill value="upgrade_skill"/>
			<produced-upgrade name="birds"/>
		</command>

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