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

<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="450" regeneration="1"/>
		<max-ep value="50" regeneration="1" start-percentage="100"/>
		<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="energy" amount="1"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/initiate.bmp"/>
		<image-cancel path="../archmage/images/magic_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/initiate_select1.wav"/>
			<sound path="sounds/initiate_select2.wav"/>
			<sound path="sounds/initiate_select3.wav"/>
			<sound path="sounds/initiate_select4.wav"/>
			<sound path="sounds/initiate_select5.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/initiate_ack1.wav"/>
			<sound path="sounds/initiate_ack2.wav"/>
			<sound path="sounds/initiate_ack3.wav"/>
			<sound path="sounds/initiate_ack4.wav"/>
			<sound path="sounds/initiate_ack5.wav"/>
			<sound path="sounds/initiate_ack6.wav"/>
			<sound path="sounds/initiate_ack7.wav"/>
			<sound path="sounds/initiate_ack8.wav"/>
			<sound path="sounds/initiate_ack9.wav"/>
		</command-sounds>
	</parameters>
	<skills>
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="70"/>
			<animation path="models/initiate_standing.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="stop"/>
			<name value="stop_loaded_skill"/>
			<ep-cost value="0"/>
			<speed value="70"/>
			<anim-speed value="60"/>
			<animation path="models/initiate_standing_loaded.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="move"/>
			<name value="move_skill"/>
			<ep-cost value="0"/>
			<speed value="240"/>
			<anim-speed value="192"/>
			<animation path="models/initiate_walking.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="move"/>
			<name value="move_gold_skill"/>
			<ep-cost value="0"/>
			<speed value="265"/>
			<anim-speed value="230"/>
			<animation path="models/initiate_walking.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="move"/>
			<name value="move_loaded_skill"/>
			<ep-cost value="0"/>
			<speed value="230"/>
			<anim-speed value="220"/>
			<animation path="models/initiate_walking_loaded.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="build"/>
			<name value="build_skill"/>
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="80"/>
			<animation path="models/initiate_building.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/initiate_build1.wav"/>
				<sound-file path="sounds/initiate_build2.wav"/>
				<sound-file path="sounds/initiate_build3.wav"/>
			</sound>
		</skill>
		<skill>
			<type value="repair"/>
			<name value="repair_skill"/>
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="150"/>
			<animation path="models/initiate_repairing.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/initiate_build1.wav"/>
				<sound-file path="sounds/initiate_build2.wav"/>
				<sound-file path="sounds/initiate_build3.wav"/>
			</sound>
		</skill>
		<skill>
			<type value="harvest"/>
			<name value="harvest_skill"/>
			<ep-cost value="0"/>
			<speed value="200"/>
			<anim-speed value="80"/>
			<animation path="models/initiate_harvesting.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/initiate_harvest1.wav"/>
				<sound-file path="sounds/initiate_harvest2.wav"/>
				<sound-file path="sounds/initiate_harvest3.wav"/>
				<sound-file path="sounds/initiate_harvest4.wav"/>
			</sound>
		</skill>
		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="80"/>
			<animation path="models/initiate_morphing.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>
			<ep-cost value="10"/>
			<speed value="40"/>
			<anim-speed value="40"/>
			<animation path="models/initiate_attacking.g3d"/>
			<sound enabled="true" start-time="0.2">
				<sound-file path="sounds/initiate_attack1.wav"/>
				<sound-file path="sounds/initiate_attack2.wav"/>
				<sound-file path="sounds/initiate_attack3.wav"/>
				<sound-file path="sounds/initiate_attack4.wav"/>
				<sound-file path="sounds/initiate_attack5.wav"/>
				<sound-file path="sounds/initiate_attack6.wav"/>
				<sound-file path="sounds/initiate_attack7.wav"/>
				<sound-file path="sounds/initiate_attack8.wav"/>
			</sound>
			<attack-strenght value="100"/>
			<attack-var value="40"/>
			<attack-range value="4"/>
			<attack-type value="energy"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.45"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
				<sound-file path="sounds/initiate_hit1.wav"/>
				<sound-file path="sounds/initiate_hit2.wav"/>
				<sound-file path="sounds/initiate_hit3.wav"/>
				<sound-file path="sounds/initiate_hit4.wav"/>
			</sound>
			</projectile>
			<splash value="false"/>
		</skill>
		<skill>
			<type value="die"/>
			<name value="die_skill"/>
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="150"/>
			<animation path="models/initiate_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/initiate_die1.wav"/>
				<sound-file path="sounds/initiate_die2.wav"/>
				<sound-file path="sounds/initiate_die3.wav"/>
			</sound>
			<fade value="false"/>
		</skill>
	</skills>
	<commands>
		<command>
			<type value="stop"/>
			<name value="stop"/>
			<image path="../archmage/images/magic_stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>
		<command>
			<type value= "move"/>
			<name value="move"/>
			<image path="../archmage/images/magic_move.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>
		<command>
			<type value="attack"/>
			<name value="attack"/>
			<image path="images/initiate_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_skill"/>
		</command>
		<command>
			<type value="repair"/>
			<name value="repair"/>
			<image path="images/initiate_repair.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<repair-skill value="repair_skill"/>
			<repaired-units>
				<unit name="mage_tower"/>
				<unit name="energy_source"/>
				<unit name="summoner_guild"/>
				<unit name="library"/>
				<unit name="archmage_tower"/>
				<unit name="wicker_behemoth"/>
				<unit name="tower_of_souls"/>
				<unit name="golem"/>
				<unit name="power_golem"/>
			</repaired-units>
		</command>
		<command>
			<type value="build"/>
			<name value="build"/>
			<image path="images/initiate_build.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
				<building name="energy_source"/>
				<building name="summoner_guild"/>
				<building name="library"/>
				<building name="archmage_tower"/>
				<building name="mage_tower"/>
			</buildings>
			<start-sound enabled="true">
				<sound-file path="sounds/initiate_work_start1.wav"/>
				<sound-file path="sounds/initiate_work_start2.wav"/>
			</start-sound>
			<built-sound enabled="true">
				<sound-file path="sounds/initiate_work_end1.wav"/>
				<sound-file path="sounds/initiate_work_end2.wav"/>
			</built-sound>
		</command>
		<command>
			<type value="build"/>
			<name value="ritual"/>
			<image path="../behemoth/images/behemoth.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
				<building name="tower_of_souls"/>
				<building name="golem"/>
				<building name="wicker_behemoth"/>
			</buildings>
			<start-sound enabled="true">
				<sound-file path="sounds/initiate_work_start1.wav"/>
				<sound-file path="sounds/initiate_work_start2.wav"/>
			</start-sound>
			<built-sound enabled="true">
				<sound-file path="sounds/initiate_work_end1.wav"/>
				<sound-file path="sounds/initiate_work_end2.wav"/>
			</built-sound>
		</command>
		<command>
			<type value="harvest"/>
			<name value="mine"/>
			<image path="images/initiate_harvest.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_gold_skill"/>
			<harvest-skill value="harvest_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="20"/>
			<hits-per-unit value="1"/>
		</command>
		<command>
			<type value="morph"/>
			<name value="promote_to_battlemage"/>
			<image path="../battlemage/images/battlemage.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "battlemage"/>
			<discount value="0"/>
		</command>
	</commands>
</unit>
