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

<unit>
	<parameters>
		<size value="2"/>
		<height value="2"/>
		<max-hp value="1250" regeneration="2"/>
		<max-ep value="0"/>
		<armor value="20"/>	
		<armor-type value="organic"/>				
		<sight value="10"/>
		<time value="100"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="dangerous" kills="3"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<!--unit name="barracks"/-->
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="wood" amount="50"/>
			<resource name="gold" amount="250"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/swordman.bmp"/>
		<image-cancel path="../tyrannosaurus_rex/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel3.wav"/>
			<sound path="sounds/sel4.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel3.wav"/>
			<sound path="sounds/sel4.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/stegosaurus_idle.g3d"/>
			<sound enabled="false"/>
		</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/stegosaurus_idle.g3d"/>
			<sound enabled="false" />
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="320"/>
			<anim-speed value="160"/>
			<animation path="models/stegosaurus2.g3d"/>
			<sound enabled="true" start-time="0.47">
				<sound-file path="sounds/walking.wav"/>
			</sound> 
		</skill>

		<skill>
			<type value="move"/>
			<name value="charge_skill"/>		
			<ep-cost value="0"/>
			<speed value="350"/>
			<anim-speed value="180"/>
			<animation path="models/stegosaurus2.g3d"/>
			<sound enabled="true" start-time="0.47">
				<sound-file path="sounds/walking.wav"/>
			</sound> 
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="60"/>
			<animation path="models/stegosaurus_attack.g3d"/>
			<sound enabled="true" start-time="0.47">
				<sound-file path="../ankylosaurus/sounds/behemoth_attack1a.wav"/>
				<sound-file path="../ankylosaurus/sounds/behemoth_attack1b.wav"/>
				<sound-file path="../ankylosaurus/sounds/behemoth_attack1c.wav"/>
				<sound-file path="../ankylosaurus/sounds/behemoth_attack1d.wav"/>
				<sound-file path="../ankylosaurus/sounds/behemoth_attack1e.wav"/>
				<sound-file path="../ankylosaurus/sounds/behemoth_attack1f.wav"/>
				<sound-file path="../ankylosaurus/sounds/behemoth_attack1g.wav"/>
				<sound-file path="../ankylosaurus/sounds/behemoth_attack1h.wav"/>
			</sound> 
			<attack-strenght value="70"/>
			<attack-var value="70"/>
			<attack-range value="1"/>
			<attack-type value="piercing"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.4"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>

		<skill>
			<type value="build"/>
			<name value="build_skill"/>		
			<ep-cost value="0"/>
			<speed value="105"/>
			<anim-speed value="100"/>
			<animation path="models/stegosaurus_harvest.g3d"/>
			<sound enabled="false">
			</sound>
		</skill>	
		
		<skill>
			<type value="harvest"/>
			<name value="mine_skill"/>		
			<ep-cost value="0"/>
			<speed value="900"/>
			<anim-speed value="100"/>
			<animation path="models/stegosaurus_harvest.g3d"/>
			<sound enabled="false">
			</sound>
		</skill>	

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/stegosaurus_die.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/die1.wav"/>
				<sound-file path="sounds/die2.wav"/>
				<sound-file path="sounds/die3.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>


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

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

		<command>
			<type value="attack"/>
			<name value="attack"/>
			<image path="images/swordman_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="charge_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

		
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="../tyrannosaurus_rex/images/tech_hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements>
			</upgrade-requirements>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

		<command>
			<type value= "build"/>
			<name value="build"/>
			<image path="images/worker_build_basic.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
				<building name="nest"/>
                	</buildings>
			<start-sound enabled="false"/>
			<built-sound enabled="false">				
			</built-sound>	
		</command>

		<command>
			<type value="harvest"/>
			<name value="gather"/>
			<image path="images/worker_mine.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<harvest-skill value="mine_skill"/>
			<stop-loaded-skill value="stop_skill"/>
			<move-loaded-skill value="move_skill"/>
			<harvested-resources>
				<resource name="gold"/>	
				<resource name="stone"/>	
				<resource name="wood"/>		
			</harvested-resources>
			<max-load value="100"/>
			<hits-per-unit value="1"/>				
		</command>	

	</commands>
</unit>
