<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="800" regeneration="0"/>
		<max-ep value="0"/>
		<armor value="35"/>	
		<armor-type value="metal"/>				
		<sight value="10"/>
		<time value="70"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="veteran" kills="6"/>
			<level name="elite" kills="13"/>
			<level name="unyielding" kills="21"/>
			<level name="honourable" kills="32"/>
			<level name="legendary" kills="48"/>			
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="barracks"/>	
			<unit name="blacksmith"/>			
			<unit name="guild"/>
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="wood" amount="100"/>
			<resource name="gold" amount="150"/>
			<resource name="food" amount="1"/>						
		</resource-requirements>
		<resources-stored/>
		<image path="images/pikeman.png"/>
		<image-cancel path="../archer/images/order_cancel.png"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/swordman_select1.wav"/>
			<sound path="sounds/swordman_select2.wav"/>
			<sound path="sounds/swordman_select3.wav"/>
			<sound path="sounds/swordman_select4.wav"/>
			<sound path="sounds/swordman_select5.wav"/>
			<sound path="sounds/swordman_select6.wav"/>
			<sound path="sounds/swordman_ack4.wav"/>
			<sound path="sounds/swordman_ack5.wav"/>
			<sound path="sounds/swordman_ack6.wav"/>			
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/swordman_ack1.wav"/>
			<sound path="sounds/swordman_ack2.wav"/>
			<sound path="sounds/swordman_ack3.wav"/>			
		</command-sounds>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="30"/>
			<animation path="models/ming_inf.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="stop"/>
			<name value="hold_stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="10"/>
			<animation path="models/ming_inf_hold.g3d"/>
			<sound enabled="false"/>
			<attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="0"/>
				<target value="faction" include-self="true">				
					<unit-type name="pikeman"/>									
				</target>
				<max-hp value="0" />
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="10"/>
				<attack-range value="0"/>
				<armor value="10"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false"/>
			</attack-boost>					
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="200"/>
			<anim-speed value="80"/>
			<animation path="models/ming_inf_move.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="charge_skill"/>		
			<ep-cost value="0"/>
			<speed value="200"/>
			<anim-speed value="100"/>
			<animation path="models/ming_inf_charge.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation path="models/ming_inf_attack.g3d"/>			
			<animation path="models/ming_inf_attack1.g3d"/>			
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack4.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack6.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack7.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack8.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack9.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack10.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack11.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack12.wav"/>
			</sound>
			<attack-strenght value="100"/>
			<attack-var value="30"/>
			<attack-range value="2"/>
			<attack-type value="piercing"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.2"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack2_skill"/>		
			<ep-cost value="0"/>
			<speed value="90"/>
			<anim-speed value="90"/>
			<animation path="models/ming_inf_attack.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack4.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack7.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack9.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/swordman_attack11.wav"/>
			</sound> 
			<sound enabled="true" start-time="0.8">
				<sound-file path="$COMMONDATAPATH/soundsmods/sword1.wav"/>
				<sound-file path="$COMMONDATAPATH/soundsmods/a1.wav"/>				
				<sound-file path="$COMMONDATAPATH/soundsmods/sword2.wav"/>
				<sound-file path="$COMMONDATAPATH/soundsmods/sword3.wav"/>				
				<sound-file path="$COMMONDATAPATH/soundsmods/sword4.wav"/>
				<sound-file path="$COMMONDATAPATH/soundsmods/sword5.wav"/>
				<sound-file path="$COMMONDATAPATH/soundsmods/a2.wav"/>				
				<sound-file path="$COMMONDATAPATH/soundsmods/sword6.wav"/>
				<sound-file path="$COMMONDATAPATH/soundsmods/sword7.wav"/>
				<sound-file path="$COMMONDATAPATH/soundsmods/sword8.wav"/>				
			</sound> 			
			<attack-strenght value="100"/>
			<attack-var value="60"/>
			<attack-range value="2"/>
			<attack-type value="slashing"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.8"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>		

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation-random-cycle-maxcount value="1" />
			<animation path="models/ming_inf_die.g3d"/>
			<particles value="false"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/swordman_die1.wav"/>
				<sound-file path="sounds/swordman_die2.wav"/>
				<sound-file path="sounds/swordman_die3.wav"/>
				<sound-file path="sounds/swordman_die4.wav"/>
				<sound-file path="sounds/swordman_die5.wav"/>
				<sound-file path="sounds/swordman_die6.wav"/>				
			</sound>			
			<fade value="false"/>
		</skill>
	</skills>
	
	<commands>		
		<command>
			<type value="stop"/>
			<name value="stop"/>
			<image path="../archer/images/order_halt.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>
		<command>
			<type value="move"/>
			<name value="move"/>
			<image path="../archer/images/order_move.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>
		<command>
			<type value="attack"/>
			<name value="attack"/>
			<image path="images/pikeman_attack.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_skill"/>
		</command>		
		<command>
			<type value="attack"/>
			<name value="attack_axe"/>
			<image path="images/pikeman_attack2.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="charge_skill"/>
			<attack-skill value="attack2_skill"/>
		</command>			
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="../archer/images/order_hold.png"/>
			<unit-requirements/>
			<upgrade-requirements>
				<upgrade name="training_field"/>
			</upgrade-requirements>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position_axe"/>
			<image path="../archer/images/order_hold_special.png"/>
			<unit-requirements/>
			<upgrade-requirements>
				<upgrade name="training_field"/>
			</upgrade-requirements>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack2_skill"/>
		</command>			
		<command>
			<type value="attack_stopped"/>
			<name value="spear_wall_formation"/>
			<image path="images/spear_wall.png"/>
			<unit-requirements>
				<unit name="lord"/>
			</unit-requirements>
			<upgrade-requirements>
				<upgrade name="training_field"/>
			</upgrade-requirements>
			<stop-skill value="hold_stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>			
	</commands>
</unit>