<?xml version="1.0" standalone="no" ?>
<unit>
	<!-- *** parameters *** -->
	<parameters>
		<size value="3" />
		<height value="2" />
		<max-hp value="11000" regeneration="0"/>
		<max-ep value="0" />
		<armor value="0" />
		<armor-type value="wood"/>				
		<sight value="19" />
		<time value="50" />
		<multi-selection value="false" />
		<cellmap value="true">
			<row value="000"/>
			<row value="010"/>
			<row value="000"/>
		</cellmap>
		<levels/>
		<fields>
			<field value="land" />
		</fields>
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="true" red="0.0" green="0.3" blue="1.0"/>
		<rotationAllowed value="false" />
		<unit-requirements>
			<unit name="tent"/>
			<unit name="campfire"/>
		</unit-requirements>
		<upgrade-requirements />
		<resource-requirements>
			<resource name="gold" amount="400"/>
			<resource name="wood" amount="250"/>
			<resource name="stone" amount="50"/>
			<!--resource name="housing" amount="-14"/-->
		</resource-requirements>
		<resources-stored/>
		<image path="images/totem.bmp" />



		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="true" image-path="../mainteepee/images/meeting_point.bmp"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/tech_click.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/tech_click.wav"/>
		</command-sounds>
	</parameters>
	
	<!-- *** skills *** -->
	<skills>
		<!-- *** skill 0 *** -->
		<skill>
			<type value="be_built" />
			<name value="be_built_skill"/>		
			<ep-cost value="0" />
			<speed value="120"/>
			<speed value="120"/>
			<anim-speed value="0" />
			<animation path="models/totem_construction.g3d" />
			<sound enabled="false" />
		</skill>
		
		<!-- *** skill 1 *** -->
		<skill>
			<type value="stop" />
			<name value="stop_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="0" />
			<animation path="models/totem.g3d" />
			<sound enabled="false" />
		</skill>	
		
		<!-- *** skill 2 *** -->
		<skill>
			<type value="die" />
			<name value="die_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="0" />
			<animation path="models/totem_destroyed.g3d" />
			<particles value="true">
				<particle-file path="smoke_particles.xml"/>
				<particle-file path="glow_particles.xml"/>
			</particles>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tech_building_fall5.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>
		<!-- *** Skill 3 *** -->
		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="80"/>
			<anim-speed value="80"/>
			<animation path="models/totem.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack4.wav"/>
                        	<sound-file path="$COMMONDATAPATH/sounds/tower_attack5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack6.wav"/>
			</sound>
			<attack-strenght value="300"/>
			<attack-var value="50"/>
			<attack-range value="15"/>
			<attack-type value="energy"/>
			<attack-start-time value="0.3"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tower_hit1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_hit2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_hit3.wav"/>
                                </sound>
			</projectile>
			<splash value="true">
				<radius value="3"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>
		<!-- *** Skill 4 *** -->
		<skill>
			<type value="attack"/>
			<name value="attack_air_skill"/>		
			<ep-cost value="0"/>
			<speed value="80"/>
			<anim-speed value="80"/>
			<animation path="models/totem.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack4.wav"/>
                        	<sound-file path="$COMMONDATAPATH/sounds/tower_attack5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_attack6.wav"/>
			</sound>
			<attack-strenght value="150"/>
			<attack-var value="50"/>
			<attack-range value="15"/>
			<attack-type value="energy"/>
			<attack-start-time value="0.3"/>
			<attack-fields>
				<field value="air"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tower_hit1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_hit2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/tower_hit3.wav"/>
                                </sound>
			</projectile>
			<splash value="true">
				<radius value="3"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
                </skill>
		<skill>
			<type value="produce" />
			<name value="produce_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="0" />
			<animation path="models/totem.g3d" />
			<sound enabled="false" />
		</skill>
                <skill>
			<type value="upgrade"/>
			<name value="upgrade_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="0"/>
			<animation path="models/totem.g3d"/>
			<sound enabled="false"/>
		</skill>
		

	</skills>
	
	<!-- *** commands *** -->
	
	<commands>

                <!-- *** Command 0 *** -->
		<command>
			<type value= "stop"/>
			<name value="attack_off"/>
			<name value="hold_position"/>
			<image path="images/tower_of_souls_attack_off.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

               
		<!-- *** Command 1 *** -->
                <!-- no ground attack
		<command>
			<type value= "attack_stopped"/>
			<name value="ground_on"/>
			<image path="images/tower_of_souls_attack_on.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>
                -->

		<!-- *** Command 2 *** -->
		<command>
			<type value="attack_stopped"/>
			<name value="air_on"/>
			<image path="images/tower_of_souls_attack_on.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_air_skill"/>
		</command>

	        <command>
			<type value="upgrade"/>
			<name value="research_petroleum"/>
			<image path="../../upgrades/petroleum/images/petroleum.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<upgrade-skill value="upgrade_skill"/>
			<produced-upgrade name="petroleum"/>
		</command>	

		<command>
			<type value="produce"/>
			<name value="produce_shaman" />
			<image path="../shaman/images/shaman.bmp" />
			<unit-requirements />
			<upgrade-requirements />
			<produce-skill value="produce_skill"/>
			<produced-unit name="shaman"/>
		</command>

	</commands>
</unit>
