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

<unit>
	<parameters>
		<size value="2"/>
		<height value="1"/>
		<max-hp value="900" regeneration="2"/>
		<max-ep value="0"/>
		<armor value="15"/>
		<armor-type value="organic"/>
		<sight value="15"/>
		<time value="240"/>
		<multi-selection value="true"/>
		<cellmap value="false"/>
		<levels>
			<level name="elite" kills="7"/>
		</levels>
		<fields>
			<field value="air"/>
		</fields>
		<properties>
		</properties>
		<damage-particles value="true">
			<particle-file path="smoke_particles.xml"/>
			<particle-file path="glow_particles.xml"/>
		</damage-particles>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="tent"/>
		</unit-requirements>
		<upgrade-requirements>
			<upgrade name="magic_level_2"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="150"/>
			<resource name="wood" amount="150"/>
			<resource name="food" amount="1"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/flying_carpet.bmp"/>
		<image-cancel path="../genie/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/carpet_sel1.wav"/>
			<sound path="sounds/carpet_sel2.wav"/>
			<sound path="sounds/carpet_sel3.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/carpet_ack1.wav"/>
			<sound path="sounds/carpet_ack2.wav"/>
			<sound path="sounds/carpet_ack3.wav"/>
			<sound path="sounds/carpet_ack4.wav"/>
			<sound path="sounds/carpet_ack5.wav"/>
		</command-sounds>

	</parameters>

	<skills>

		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="35"/>
			<animation path="models/carpet_standing.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/orni_standing.wav"/>
			</sound>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_skill"/>
			<ep-cost value="0"/>
			<speed value="250"/>
			<anim-speed value="75"/>
			<animation path="models/carpet_flying.g3d"/>
			<particles value="true">
				<particle-file path="fly_particles.xml"/>
				<particle-file path="fly_particles2.xml"/>
			</particles>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/orni_fly.wav"/>
			</sound>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="molotov_skill"/>
			<ep-cost value="0"/>
			<speed value="35"/>
			<anim-speed value="100"/>
			<animation path="models/carpet_attacking.g3d"/>
			<sound enabled="true" start-time="0.0">
				<sound-file path="sounds/carpet_attack1.wav"/>
				<sound-file path="sounds/carpet_attack2.wav"/>
				<sound-file path="sounds/carpet_attack3.wav"/>
				<sound-file path="sounds/carpet_attack5.wav"/>
				<sound-file path="sounds/carpet_attack6.wav"/>
			</sound>
			<attack-strenght value="150"/>
			<attack-var value="100"/>
			<attack-range value="6"/>
			<attack-type value="energy"/>
			<attack-start-time value="0.4"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="molotov_particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="sounds/carpet_hit1.wav"/>
					<sound-file path="sounds/carpet_hit2.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="1"/>
				<damage-all value="true"/>
				<particle value="true" path="molotov_particle_splash.xml"/>
			</splash>
		</skill>

		<skill>
			<type value="die"/>
			<name value="die_skill"/>
			<ep-cost value="0"/>
			<speed value="120"/>
			<anim-speed value="120"/>
			<animation path="models/carpet_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/carpet_die1.wav"/>
				<sound-file path="sounds/carpet_die2.wav"/>
				<sound-file path="sounds/carpet_die3.wav"/>
				<sound-file path="sounds/carpet_die4.wav"/>
				<sound-file path="sounds/carpet_die5.wav"/>
			</sound>
			<fade value="true"/>
		</skill>

	</skills>

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

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

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

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

	</commands>
</unit>
