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

<unit>

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

	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="600" regeneration="1"/>
		<max-ep value="0"/>
		<armor value="0"/>
		<armor-type value="leather"/>
		<sight value="9"/>
		<time value="40"/>
		<multi-selection value="true"/>
		<cellmap value="false"/>
		<levels/>
		<fields>
			<field value="land"/>
		</fields>
		<properties/>
		<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="50"/>
			<resource name="food" amount="1"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/worker.bmp"/>
		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/worker_select1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/worker_select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/worker_select3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/worker_select4.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/worker_ack1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/worker_ack2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/worker_ack3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/worker_ack4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/worker_ack5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/worker_ack6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/worker_ack7.wav"/>
		</command-sounds>
	</parameters>

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

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

		<skill>
			<type value="stop"/>
			<name value="stop_loaded_skill"/>
			<ep-cost value="0"/>
			<speed value="75"/>
			<anim-speed value="70"/>
			<animation path="models/worker_standing_loaded.g3d"/>
			<sound enabled="false"/>
		</skill>


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


		<skill>
			<type value="move"/>
			<name value="move_gold_skill"/>
			<ep-cost value="0"/>
			<speed value="260"/>
			<anim-speed value="163"/>
			<animation path="models/worker_walking_gold.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_loaded_skill"/>
			<ep-cost value="0"/>
			<speed value="260"/>
			<anim-speed value="163"/>
			<animation path="models/worker_walking_loaded.g3d"/>
			<sound enabled="false"/>
		</skill>


		<skill>
			<type value="build"/>
			<name value="build_skill"/>
			<ep-cost value="0"/>
			<speed value="105"/>
			<anim-speed value="100"/>
			<animation path="models/worker_building.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="$COMMONDATAPATH/sounds/worker_build1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_build2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_build3.wav"/>
			</sound>
		</skill>

		<skill>
			<type value="harvest"/>
			<name value="mine_skill"/>
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="100"/>
			<animation path="models/worker_mining.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine4.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine6.wav"/>
			</sound>
		</skill>


		<skill>
			<type value="repair"/>
			<name value="repair_skill"/>
			<ep-cost value="0"/>
			<speed value="40"/>
			<anim-speed value="100"/>
			<animation path="models/worker_building.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="$COMMONDATAPATH/sounds/worker_build1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_build2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_build3.wav"/>
			</sound>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>
			<ep-cost value="0"/>
			<speed value="225"/>
			<anim-speed value="90"/>
			<animation path="models/worker_mining.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine4.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_mine6.wav"/>
			</sound>
			<attack-strenght value="100"/>
			<attack-var value="20"/>
			<attack-range value="2"/>
			<attack-type value="energy"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.50"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>

		<skill>
			<type value="die"/>
			<name value="die_skill"/>
			<ep-cost value="0"/>
			<speed value="90"/>
			<anim-speed value="90"/>
			<animation path="models/worker_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/worker_die1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_die2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_die3.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="../archer/images/archer_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

		<command>
			<type value= "build"/>
			<name value="build"/>
			<image path="images/worker_build.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
				<building name="farm"/>
				<building name="barracks"/>
				<building name="blacksmith"/>
				<building name="technodrome"/>
                <building name="aerodrome"/>
				<building name="defense_tower"/>
				<building name="castle"/>
			</buildings>
			<start-sound enabled="false"/>
			<built-sound enabled="true">
				<sound-file path="$COMMONDATAPATH/sounds/worker_work_end1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_work_end2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_work_end3.wav"/>
			</built-sound>
		</command>

		<command>
			<type value="harvest"/>
			<name value="mine"/>
			<image path="images/worker_mine.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_gold_skill"/>
			<harvest-skill value="mine_skill"/>
			<stop-loaded-skill value="stop_loaded_skill"/>
			<move-loaded-skill value="move_loaded_skill"/>
			<harvested-resources>
				<resource name="gold"/>
				<resource name="stone"/>
			</harvested-resources>
			<max-load value="10"/>
			<hits-per-unit value="1"/>
		</command>

		<command>
			<type value="repair"/>
			<name value="repair"/>
			<image path="images/worker_repair.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<repair-skill value="repair_skill"/>
			<repaired-units>
				<unit name="farm"/>
				<unit name="barracks"/>
				<unit name="castle"/>
				<unit name="blacksmith"/>
				<unit name="defense_tower"/>
				<unit name="technodrome"/>
                <unit name="aerodrome"/>
			</repaired-units>
		</command>

	</commands>
</unit>
