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

<unit>

	<!-- *** parameters *** -->

	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="700" regeneration="2"/>
		<max-ep value="0"/>
		<armor value="10"/>	
		<armor-type value="leather"/>
		<sight value="14"/>
		<time value="30"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="smart" kills="3"/>
			<level name="king" kills="6"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
			<light enabled="false"/>
		<unit-requirements>
			<unit name="castle"/>
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="coins" amount="1"/>				
		</resource-requirements>
		<resources-stored/>
		<image path="images/spearman.bmp"/>
		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/stickfighter_select1.wav"/>
			<sound path="sounds/stickfighter_select2.wav"/>
			<sound path="sounds/stickfighter_select3.wav"/>
			<sound path="sounds/stickfighter_select4.wav"/>
			<sound path="sounds/stickfighter_select5.wav"/>
			<sound path="sounds/stickfighter_select6.wav"/>
			<sound path="sounds/stickfighter_select7.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/stickfighter_ack1.wav"/>
			<sound path="sounds/stickfighter_ack2.wav"/>
			<sound path="sounds/stickfighter_ack3.wav"/>
			<sound path="sounds/stickfighter_ack4.wav"/>
			<sound path="sounds/stickfighter_ack5.wav"/>
			<sound path="sounds/stickfighter_ack6.wav"/>
		</command-sounds>

	</parameters>


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

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="30"/>
			<animation path="models/spikey_stand.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="220"/>
			<anim-speed value="105"/>
			<animation path="models/spikey_walk.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="70"/>
			<animation path="models/spikey_attack.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/stickfighter_attack1.wav"/>
				<sound-file path="sounds/stickfighter_attack2.wav"/>
				<sound-file path="sounds/stickfighter_attack3.wav"/>
				<sound-file path="sounds/stickfighter_attack4.wav"/>
				<sound-file path="sounds/stickfighter_attack5.wav"/>
				<sound-file path="sounds/stickfighter_attack6.wav"/>
				<sound-file path="sounds/stickfighter_attack7.wav"/>
			</sound>
			<attack-strenght value="200"/>
			<attack-var value="50"/>
			<attack-range value="1"/>
			<attack-type value="slashing"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.15"/>
			<projectile value="false">
			</projectile>
			<splash value="true">
				<radius value="0"/>
				<damage-all value="true"/>
				<particle value="false"/>
			</splash>
		</skill>
		
		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="5"/>
			<animation path="models/spikey_morph.g3d"/>
			<sound enabled="false"/>
		</skill>	

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="120"/>
			<anim-speed value="50"/>
			<animation path="models/spikey_die.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/stickfighter_die1.wav"/>
				<sound-file path="sounds/stickfighter_die2.wav"/>
				<sound-file path="sounds/stickfighter_die3.wav"/>
				<sound-file path="sounds/stickfighter_die4.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>

	</skills>

	<!-- *** commands *** -->
	
	<commands>
		
		<command>
			<type value="stop"/>
			<name value="stop"/>
			<image path="../archer/images/tech_stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value="move"/>
			<name value="move"/>
			<image path="../archer/images/tech_move.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="attack"/>
			<image path="images/spearman_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_skill"/>
		</command>
                
		<command>
			<type value="morph"/>
			<name value="go_in_shell"/>
			<image path="images/morph.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "spikey_shell"/>
			<discount value="40"/>
		</command>
	</commands>
</unit>
