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

<unit>
	<parameters>
		<size value="1"/>
		<height value="0"/>
		<max-hp value="1" regeneration="1"/>
		<max-ep value="10" regeneration="1"/>
		<max-unit-count value="3"/>
		<armor value="0"/>	
		<armor-type value="leather"/>				
		<sight value="2"/>
		<time value="20"/>	
		<multi-selection value="false"/>	
		<cellmap value="true" allowEmpty="true">
			<row value="0"/>
		</cellmap>
		<levels>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="wooden_shack" />
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="stone" amount="20"/>	
			<resource name="wood" amount="140"/>					
		</resource-requirements>
		<resources-stored/>
		<image path="images/trap.jpg"/>
		<image-cancel path="../you/images/stop.jpg"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="../small_wooden_house/sounds/tech_click.wav" />
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="../small_wooden_house/sounds/tech_click.wav" />
		</command-sounds>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="45"/>
			<animation path="models/smalltrap_sit.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="100"/>
			<animation path="models/smalltrap_sit.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<name value="be_built_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="300"/>
			<animation path="models/smalltrap_build.g3d"/>
			<sound enabled="false"/>
			<type value="be_built"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="10"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation path="models/smalltrap_attack.g3d"/>
			<sound enabled="true" start-time="0.2">
				<sound-file path="sounds/attack.wav"/>
			</sound> 
			<attack-strenght value="800"/>
			<attack-var value="0"/>
			<attack-range value="1"/>
			<attack-type value="claw"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.2"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>	

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/smalltrap_sit.g3d"/>
			<sound enabled="false"/>			
			<fade value="true"/>
		</skill>


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

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

		<command>
			<type value="morph"/>
			<name value="destroy_trap"/>
			<image path="../you/images/remove.jpg"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "invis"/>
			<discount value="0"/>
		</command>	

	</commands>
</unit>
