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

<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="3000" regeneration="3"/>
		<max-ep value="0" />
		<armor value="20"/>	
		<armor-type value="wood"/>
		<sight value="20"/>
		<time value="250"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="old" kills="4"/>
			<level name="ancient" kills="10"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements>
			<upgrade name="ent_water"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="200"/>
			<resource name="wood" amount="150"/>
			<resource name="food" amount="6"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/ent.bmp"/>
		<image-cancel path="../tree_of_life/images/stop.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/golem_select1.wav"/>
			<sound path="sounds/golem_select2.wav"/>
			<sound path="sounds/golem_select3.wav"/>
			<sound path="sounds/golem_select4.wav"/>
			<sound path="sounds/golem_select5.wav"/>
			<sound path="sounds/golem_select6.wav"/>
			<sound path="sounds/golem_select7.wav"/>
			<sound path="sounds/golem_select8.wav"/>
			<sound path="sounds/golem_select9.wav"/>
			<sound path="sounds/golem_select10.wav"/>
			<sound path="sounds/golem_select11.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/golem_ack1.wav"/>
			<sound path="sounds/golem_ack2.wav"/>
			<sound path="sounds/golem_ack3.wav"/>
			<sound path="sounds/golem_ack4.wav"/>
			<sound path="sounds/golem_ack5.wav"/>
			<sound path="sounds/golem_ack6.wav"/>
			<sound path="sounds/golem_ack7.wav"/>
			<sound path="sounds/golem_ack8.wav"/>
			<sound path="sounds/golem_ack9.wav"/>
			<sound path="sounds/golem_ack10.wav"/>
			<sound path="sounds/golem_ack11.wav"/>
		</command-sounds>

	</parameters>


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

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="25"/>
			<animation path="models/ent_idle.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="20"/>
			<animation path="models/ent_walking.g3d"/>
			<sound enabled="true" start-time="0">
			<sound-file path="sounds/golem_die1.wav"/>
			<sound-file path="sounds/golem_die2.wav"/>
			<sound-file path="sounds/golem_die3.wav"/>
			</sound>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="melee"/>		
			<ep-cost value="0"/>
			<speed value="40"/>
			<anim-speed value="40"/>
			<animation path="models/ent_melee_attack.g3d"/>
			<sound enabled="true" start-time="0.02">
				<sound-file path="sounds/golem_attack1.wav"/>
			</sound>
			<attack-strenght value="390"/>
			<attack-var value="200"/>
			<attack-range value="1"/>
			<attack-type value="impact"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.31"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>		

                <skill>
			<type value="attack"/>
			<name value="siege"/>		
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="25"/>
			<animation path="models/ent_siege_attack.g3d"/>
			<sound enabled="true" start-time="0.1">
				<sound-file path="sounds/catapult_attack1.wav"/>
				<sound-file path="sounds/catapult_attack2.wav"/>
			</sound> 
			<attack-strenght value="445"/>
			<attack-var value="145"/>
			<attack-range value="10"/>
			<attack-type value="impact"/>
			<attack-start-time value="0.72"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="/sounds/catapult_hit1.wav"/>
					<sound-file path="/sounds/catapult_hit2.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="2"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="120"/>
			<anim-speed value="30"/>
			<animation path="models/ent_dying.g3d"/>
			<sound enabled="true" start-time="0.75">
				<sound-file path="/sounds/catapult_hit1.wav"/>
				<sound-file path="/sounds/catapult_hit2.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>

		<skill>
			<type value="build"/>
			<name value="plant_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="50"/>
			<animation path="models/ent_planting.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="repair"/>
			<name value="repair_skill"/>		
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="150"/>
			<animation path="models/ent_planting.g3d"/>
			<sound enabled="false"/>
		</skill>

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

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


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

                <command>
			<type value="attack"/>
			<name value="siege"/>
			<image path="../gryphon/images/siege_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="siege"/>
		</command>

		<command>
			<type value="build"/>
			<name value="plant"/>
			<image path="images/treeb.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="plant_skill"/>
			<buildings>
				<building name="wood_guard"/>
				<building name="huorn"/>
			</buildings>
			<start-sound enabled="false"/>

			<built-sound enabled="false"/>

		</command>

		<command>
			<type value="repair"/>
			<name value="heal"/>
			<image path="../minstrel/images/heal.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<repair-skill value="repair_skill"/>
			<repaired-units>
				<unit name="wood_guard"/>	
				<unit name="tree_circle"/>	
				<unit name="tree_of_life"/>		
				<unit name="huorn"/>						
			</repaired-units>		
		</command>

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

	</commands>
</unit>
