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

<unit>

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

	<parameters>
		<size value="2"/>
		<height value="2"/>
		<max-hp value="2700" regeneration="4"/>
		<max-ep value="0"/>
		<armor value="45"/>	
		<armor-type value="leather"/>				
		<sight value="15"/>
		<time value="120"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="elite" kills="8"/>
		</levels>
		<fields>
			<field value="land"/>
			<field value="air"/>
		</fields>	
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="blacksmith_shop"/>
		</unit-requirements>
		<upgrade-requirements>
                  	<upgrade name="advanced_architecture"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="wood" amount="200"/>
			<resource name="gold" amount="100"/>
			<resource name="food" amount="2"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/br.bmp"/>
		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/golem_select1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select7.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select8.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select9.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select10.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_select11.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
		        <sound path="$COMMONDATAPATH/sounds/golem_ack1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_ack2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_ack3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_ack4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_ack5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_ack6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_ack7.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_ack8.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_ack9.wav"/>
			<sound path="$COMMONDATAPATH/sounds/golem_ack10.wav"/>
			<sound path="$COMMONDATAPATH/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="50"/>
			<animation path="models/battering_ram_stand.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="220"/>
			<anim-speed value="120"/>
			<animation path="models/battering_ram_walk.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/golem_walk1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/golem_walk2.wav"/>
			</sound> 

		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="40"/>
			<animation path="models/battering_ram_attack.g3d"/>
			<sound enabled="true" start-time="0.3">
				<sound-file path="$COMMONDATAPATH/sounds/golem_attack1.wav"/>
			</sound>
			<attack-strenght value="500"/>
			<attack-var value="100"/>
			<attack-range value="2"/>
			<attack-type value="beat"/>
			<attack-start-time value="0.5"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>

              	<skill>
			<type value="attack"/>
			<name value="attack_air_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="70"/>
			<animation path="models/battering_ram_attack_air.g3d"/>
			<sound enabled="true" start-time="0.25">
				<sound-file path="$COMMONDATAPATH/sounds/air_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/air_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/air_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/air_attack4.wav"/>
			</sound>
			<attack-strenght value="445"/>
			<attack-var value="20"/>
			<attack-range value="10"/>
			<attack-type value="piercing"/>
			<attack-fields>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.25"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="$COMMONDATAPATH/sounds/air_hit1.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/air_hit2.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/air_hit3.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/air_hit4.wav"/>
				</sound>
			</projectile>
			<splash value="false"/>
		</skill>

		<skill>
			<type value="die"/>	
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="30"/>
			<animation path="models/battering_ram_die.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/golem_die1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/golem_die2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/golem_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_land"/>
			<image path="images/thor_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

                <command>
			<type value="attack"/>
			<name value="attack_air"/>
			<image path="images/air_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_air_skill"/>
		</command>
                
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="../archer/images/tech_hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
			<attack-skill value="attack_air_skill"/>
		</command>
	</commands>
</unit>
