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

<unit>
	<parameters>
		<size value="3"/>
		<height value="4"/>
		<max-hp value="2500" regeneration="0"/>
		<max-ep value="0"/>
		<armor value="50"/>
		<armor-type value="wood"/>					
		<sight value="18"/>
		<time value="70"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="level1" kills="8"/>
			<level name="level2" kills="16"/>
			<level name="level3" kills="32"/>
			<level name="level4" kills="64"/>
			<level name="level5" kills="128"/>
			<level name="level6" kills="256"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties>
			<property value="rotated_climb"/>
		</properties>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="bonfire"/>
			<unit name="training_camp"/>
		</unit-requirements>
		<upgrade-requirements>
			<upgrade name="wooden_structures"/>
			<upgrade name="fire"/>
			<!--upgrade name=""/-->
			<upgrade name="tactics"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="250"/>
			<resource name="wood" amount="250"/>
			<resource name="food" amount="1"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/catapult.bmp"/>
		<image-cancel path="../servant/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/select1.wav"/>
			<sound path="../swordman/sounds/select1b.wav"/>
			<sound path="../swordman/sounds/select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/select3.wav"/>
			<sound path="../swordman/sounds/select4.wav"/>
			<sound path="../swordman/sounds/select5.wav"/>
			<sound path="../swordman/sounds/select5b.wav"/>
			<sound path="../swordman/sounds/select6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/select7.wav"/>					
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/select1.wav"/>
			<sound path="../swordman/sounds/select1b.wav"/>
			<sound path="../swordman/sounds/select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/select3.wav"/>
			<sound path="../swordman/sounds/select4.wav"/>
			<sound path="../swordman/sounds/select5.wav"/>
			<sound path="../swordman/sounds/select5b.wav"/>
			<sound path="../swordman/sounds/select6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/select7.wav"/>					
		</command-sounds>

	</parameters>

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

		<skill>
			<type value="be_built" />
			<name value="be_built_skill"/>		
			<ep-cost value="0" />
			<speed value="120"/>
			<speed value="120"/>
			<anim-speed value="300" />
			<animation path="models/treb_build.g3d" />
			<sound enabled="false" />
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="50"/>
			<animation path="models/treb_sit.g3d"/>
			<sound enabled="false" />
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="30"/>
			<anim-speed value="30"/>
			<animation path="models/treb_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="250"/>
			<attack-var value="50"/>
			<attack-range value="15"/>
			<attack-type value="impact"/>
			<attack-start-time value="0.4"/>
			<attack-fields>
				<field value="air"/>
				<field value="land"/>
			</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="attack"/>
			<name value="stop"/>		
			<ep-cost value="1"/>
			<speed value="1"/>
			<anim-speed value="1"/>
			<animation path="models/treb_sit.g3d" minHp="4000" maxHp="6000"/>
			<sound enabled="false">
			</sound>
			<attack-strenght value="0"/>
			<attack-var value="0"/>
			<attack-range value="0"/>
			<attack-type value="piercing"/>
			<attack-start-time value="0"/>
			<attack-fields>
				<field value="air"/>
			</attack-fields>
			<projectile value="false">
				<sound enabled="false">
				</sound>
			</projectile>
			<splash value="false"/>
		</skill>

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

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

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

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

	</commands>
</unit>
