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

<unit>
	<parameters>
		<size value="2"/>
		<height value="6"/>
		<max-hp value="8000" regeneration="0"/>
		<max-ep value="0"/>
		<armor value="20"/>	
		<armor-type value="metal"/>			
		<sight value="16"/>
		<time value="120"/>	
		<multi-selection value="false"/>
		<cellmap value="false"/>
		<levels/>	
		<fields>
			<field value="land"/>
		</fields>	
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="false"/>
		<rotationAllowed value="false" />
		<unit-requirements>
			<unit name="controlled_media"/>
		</unit-requirements>
		<upgrade-requirements>
			<!--upgrade name="advanced_architecture"/-->
		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="250"/>
			<resource name="wood" amount="250"/>	
			<resource name="fiat_currency" amount="20"/>			
		</resource-requirements>
		<resources-stored/>
		<image path="images/defense_tower.bmp"/>
		<image-cancel path="../reichstag_dc/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/fema_tower.g3d"/>
			<sound enabled="false"/>
                        <attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="1"/>
                        	<target value="foe"> <!-- ally foe faction unit-types all -->
					<!-- <unit-type value="catapult" /> -->
                                </target>

				<max-hp value="-50" value-percent-multiplier="true"/>
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="0"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="-50" value-percent-multiplier="true"/>
				<production-speed value="0"/>
				<particles value="false">
					<!--originator-particle-file path="gas_particles.xml"/>
					<affected-particle-file path="gas_particles.xml"/-->
				</particles>
                        </attack-boost>
		</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/fema_tower_build.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="160"/>
			<anim-speed value="90"/>
			<animation path="models/fema_tower.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="../assassin_fighter/sounds/chaingun.ogg"/>
			</sound>
			<attack-strenght value="60"/>
			<attack-var value="40"/>
			<attack-range value="12"/>
			<attack-type value="piercing"/>
			<attack-start-time value="0.3"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="../assassin_fighter/particle_proj.xml"/>
				<sound enabled="false"/>
			</projectile>
			<splash value="false"/>
                        <attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="1"/>
                        	<target value="foe"> <!-- ally foe faction unit-types all -->
					<!-- <unit-type value="catapult" /> -->
                                </target>

				<max-hp value="-50" value-percent-multiplier="true"/>
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="0"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="-50" value-percent-multiplier="true"/>
				<production-speed value="0"/>
				<particles value="false">
					<!--originator-particle-file path="gas_particles.xml"/>
					<affected-particle-file path="gas_particles.xml"/-->
				</particles>
                        </attack-boost>
		</skill>

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="300"/>
			<animation path="models/fema_tower_die.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="../reichstag_dc/sounds/tech_building_fall5.wav"/>
			</sound>			
			<fade value="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>

	</commands>
</unit>
