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

<unit>
	<parameters>
		<size value="2"/>
		<height value="6"/>
		<max-hp value="200" regeneration="0"/>
		<max-ep value="0"/>
		<armor value="20"/>	
		<armor-type value="undestructable"/>			
		<sight value="16"/>
		<time value="20"/>	
		<multi-selection value="true"/>
		<cellmap value="false"/>	
		<levels>
			<level name="killing_spree" kills="100" />
			<level name="dominating" kills="200" />
			<level name="megakill" kills="300" />
			<level name="unstoppable" kills="450" />
			<level name="wicked_sick" kills="600" />
			<level name="monsterkill" kills="800" />
			<level name="godlike" kills="1000" />
			<level name="beyond_godlike" kills="1300" />
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="false"/>
		<rotationAllowed value="false" />
		<unit-requirements>

		</unit-requirements>
		<upgrade-requirements>

		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="5"/>			
		</resource-requirements>
		<resources-stored/>
		<image path="images/defense_tower.bmp"/>
		<image-cancel path="images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/tech_click.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/tech_click.wav"/>
		</command-sounds>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="100"/>
			<animation path="models/defense_tower.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/defense_tower_construction.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="900"/>
			<anim-speed value="800"/>
			<animation path="models/defense_tower.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/defense_tower_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/defense_tower_attack2.wav"/>
			</sound>
			<attack-strenght value="100"/>
			<attack-var value="0"/>
			<attack-range value="12"/>
			<attack-type value="piercing"/>
			<!--attack-type value="beat"/-->
			<attack-start-time value="0.3"/>
			<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="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="300"/>
			<animation path="../castle/destruction_models/defense_tower_destruction.g3d"/>
			<particles value="true">
				<particle-file path="smoke_particles.xml"/>
				<particle-file path="glow_particles.xml"/>
			</particles>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tech_building_fall5.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>
		
		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="80"/>
			<animation path="models/defense_tower.g3d"/>
			<sound enabled="false"/>
		</skill>


	</skills>
	
	<commands>

		<command>
			<type value="stop"/>
			<name value="attack_off"/>
			<image path="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/defense_tower_attack_on.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<attack-skill value="attack_skill"/>
            <stop-skill value="stop_skill"/>
		</command>
		
		<command>
			<type value="morph"/>
			<name value="upgrade_to_guard_tower"/>
			<image path="../guard_tower/images/defense_tower.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "guard_tower"/>
			<discount value="0"/>
		</command>	
		
		<command>
			<type value="morph"/>
			<name value="upgrade_to_totem"/>
			<image path="../totem/images/totem.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "totem"/>
			<discount value="0"/>
		</command>	
		
		<command>
			<type value="morph"/>
			<name value="upgrade_to_eagle_pillar"/>
			<image path="../eagle_pillar/images/es.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "eagle_pillar"/>
			<discount value="0"/>
		</command>	

	</commands>
</unit>
