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

<unit>

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

	<parameters>
		<size value="2"/>
		<height value="2"/>
		<max-hp value="1500" regeneration="3"/>
		<max-ep value="0"/>
		<armor value="30"/>	
		<armor-type value="hide"/>
		<sight value="10"/>
		<time value="120"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="vampire" kills="7"/>
		</levels>
		<fields>
			<field value="air"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="buzau"/>
			<unit name="kochi_camp"/>
		</unit-requirements>
		<upgrade-requirements>
			<upgrade name="train_bats"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="wood" amount="150"/>
			<resource name="gold" amount="250"/>
			<resource name="food" amount="2"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/bat.bmp"/>
		<image-cancel path="../spear_thrower/images/magic_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/horseman_select1.wav"/>
			<sound path="sounds/horseman_select2.wav"/>
			<sound path="sounds/horseman_select3.wav"/>
			<sound path="sounds/horseman_select4.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/horseman_ack1.wav"/>
			<sound path="sounds/horseman_ack2.wav"/>
			<sound path="sounds/horseman_ack3.wav"/>
			<sound path="sounds/horseman_ack4.wav"/>		
			<sound path="sounds/horseman_ack5.wav"/>
		</command-sounds>

	</parameters>


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

	<skills>
	
		<!-- *** skill 0 *** -->
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="90"/>
			<animation path="models/bat_sit.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<!-- *** skill 1 *** -->
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="480"/>
			<anim-speed value="50"/>
			<animation path="models/bat_fly.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/horseman_walk1.wav"/>
				<sound-file path="sounds/horseman_walk2.wav"/>
				<sound-file path="sounds/horseman_walk3.wav"/>
			</sound> 

		</skill>

		<!-- *** skill 2 *** -->
		<skill>
			<type value="attack"/>
			<name value="attack_land_skill"/>		
			<ep-cost value="0"/>
			<speed value="110"/>
			<anim-speed value="50"/>
			<animation path="models/bat_attack_ground.g3d"/>
			<sound enabled="true" start-time="0.4">
				<sound-file path="sounds/horseman_attack2.wav"/>
				<sound-file path="sounds/horseman_attack3.wav"/>
			</sound> 
			<attack-strenght value="270"/>
			<attack-var value="70"/>
			<attack-range value="1"/>
			<attack-type value="venom"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.5"/>
			<projectile value="false"/>
			<splash value="true">
				<radius value="1"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_air_skill"/>		
			<ep-cost value="0"/>
			<speed value="110"/>
			<anim-speed value="50"/>
			<animation path="models/bat_attack_air.g3d"/>
			<sound enabled="true" start-time="0.4">
				<sound-file path="sounds/horseman_attack2.wav"/>
				<sound-file path="sounds/horseman_attack3.wav"/>
			</sound> 
			<attack-strenght value="200"/>
			<attack-var value="100"/>
			<attack-range value="1"/>
			<attack-type value="venom"/>
			<attack-fields>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.5"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>
                

		<!-- *** skill 3 *** -->
		<skill>
			<type value="die"/>	
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="50"/>
			<animation path="models/bat_die.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/horseman_die1.wav"/>
				<sound-file path="sounds/horseman_die2.wav"/>
			</sound> 
                        <fade value="false"/>
		</skill>

	</skills>

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

		<!-- *** command 1 *** -->
		<command>
			<type value="move"/>
			<name value="move"/>
			<image path="../spear_thrower/images/magic_move.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>

		<!-- *** Command 2 *** -->
		<command>
			<type value="attack"/>
			<name value="attack_air"/>
			<image path="images/bat_attack_air.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_air_skill"/>
		</command>

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

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

	</commands>
</unit>
