<?xml version="1.0" standalone="no" ?>
<unit>
	<!-- *** parameters *** -->
	<parameters>
		<size value="2"/>
		<height value="5" />
		<max-hp value="7000" regeneration="0"/>
		<max-ep value="0" />
		<armor value="20" />
		<armor-type value="organic"/>
		<sight value="16" />
		<time value="250" />
		<multi-selection value="false" />
		<cellmap value="false"/>
		<levels/>
		<fields>
			<field value="land" />
		</fields>
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="false" />
		<unit-requirements>
			<unit name="divination_crystal"/>
			<unit name="oblivion_portal"/>
		</unit-requirements>
		<upgrade-requirements />
		<resource-requirements>
			<resource name="stone" amount="300" />
			<resource name="wood" amount="200" />
		</resource-requirements>
		<resources-stored>
			<resource name="wood" amount="250"/>
		</resources-stored>
		<image path="images/pain_tower.bmp"/>
		<image-cancel path="../dark_elder/images/dark_magic_cancel.bmp"/>
		<meeting-point value="false" image-path="../dark_castle/images/meeting_point.bmp"/>
		<selection-sounds enabled="true">
			<sound path="sounds/dark_magic_click.wav" />
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/dark_magic_click.wav" />
		</command-sounds>
	</parameters>

	<!-- *** skills *** -->
	<skills>

		<skill>
			<type value="be_built"/>
			<name value="be_built_skill"/>
			<ep-cost value="0" />
			<speed value="500" />
			<anim-speed value="300" />
			<animation path="models/pain_tower_construction.g3d" />
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>
			<ep-cost value="0" />
			<speed value="1000" />
			<anim-speed value="30" />
			<animation path="models/pain_tower.g3d" />
			<particles value="true">
				<particle-file path="smoke_particles.xml"/>
			</particles>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="upgrade"/>
			<name value="upgrade_skill"/>
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="150" />
			<animation path="models/pain_tower.g3d" />
			<particles value="true">
				<particle-file path="smoke_particles.xml"/>
			</particles>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="attack"/>
			<name value="attack_air_skill"/>		
			<ep-cost value="0"/>
			<speed value="80"/>
			<anim-speed value="150"/>
			<animation path="models/pain_tower.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/attack1.wav"/>
				<sound-file path="sounds/attack2.wav"/>
				<sound-file path="sounds/attack3.wav"/>
				<sound-file path="sounds/attack4.wav"/>
			</sound>
			<attack-strenght value="150"/>
			<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/hit1.wav"/>
					<sound-file path="sounds/hit2.wav"/>
					<sound-file path="sounds/hit3.wav"/>
					<sound-file path="sounds/hit4.wav"/>
                                </sound>
			</projectile>
			<splash value="true">
				<radius value="3"/>
				<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="15"/>
			<anim-speed value="15"/>
			<animation path="models/pain_tower_destruction.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/dark_magic_building_fall6.wav"/>
			</sound>			
			<fade value="true"/>
		</skill>

		<skill>
			<type value="produce"/>
			<name value="conjure_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="200"/>
			<animation path="models/pain_tower.g3d"/>
			<particles value="true">
				<particle-file path="smoke_particles.xml"/>
			</particles>
			<sound enabled="false"/>
		</skill>

	</skills>


	<commands>
		<command>
			<type value= "stop"/>
			<name value="attack_off"/>
			<name value="hold_position"/>
			<image path="../dark_elder/images/dark_magic_stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value="attack_stopped"/>
			<name value="air_on"/>
			<image path="images/pain_tower.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_air_skill"/>
		</command>

		<!--command>
			<type value="upgrade"/>
			<name value="research_aeromancy" />
			<image path="../../upgrades/aeromancy/images/aeromancy.bmp" />
			<unit-requirements />
			<upgrade-requirements />
			<upgrade-skill value="upgrade_skill"/>
			<produced-upgrade name="aeromancy"/>
		</command-->

	</commands>
</unit>
