<?xml version="1.0" standalone="no" ?>
<unit>
	<!-- *** parameters *** -->
	<parameters>
		<size value="4" />
		<height value="2" />
		<max-hp value="3500" regeneration="5"/>
		<max-ep value="0" />
		<armor value="50" />
		<armor-type value="wood"/>		
		<sight value="12" />
		<time value="200" />
		<multi-selection value="false" />
		<cellmap value="true">
			<row value="1011"/>
			<row value="1011"/>
			<row value="0000"/>
			<row value="1110"/>
		</cellmap>
		<levels/>
		<fields>
			<field value="land" />
		</fields>
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="false" />
		<unit-requirements>
			<unit name="castle" />
			<unit name="cave" />
			<unit name="pond" />
			<unit name="street_lamp" />
		</unit-requirements>
		<upgrade-requirements />
		<resource-requirements>
			<resource name="gold" amount="250" />
			<resource name="wood" amount="250" />
		</resource-requirements>
		<resources-stored>
		</resources-stored>
		<image path="images/blacksmith.bmp"/>
		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="true" image-path="../bug_nest/images/meeting_point.bmp"/>
		<selection-sounds enabled="true">
			<sound path="sounds/tech_click.wav" />
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/tech_click.wav" />
		</command-sounds>
	</parameters>
	
	<skills>
		<skill>
			<name value="be_built_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/log.g3d" />
			<sound enabled="false" />
			<type value="be_built" />
		</skill>
		<skill>
			<type value="produce" />
			<name value="produce_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="50" />
			<animation path="models/log.g3d" />
			<sound enabled="false" />
		</skill>
		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="70"/>
			<anim-speed value="70"/>
			<animation path="models/log_attack.g3d"/>
			<sound enabled="false" start-time="0">
			</sound> 
			<attack-strenght value="200"/>
			<attack-var value="75"/>
			<attack-range value="15"/>
			<attack-type value="piercing"/>
			<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">
					<sound-file path="../archer/sounds/arrow_hit1.wav"/>
					<sound-file path="../archer/sounds/arrow_hit2.wav"/>
					<sound-file path="../archer/sounds/arrow_hit3.wav"/>
					<sound-file path="../archer/sounds/arrow_hit4.wav"/>
					<sound-file path="../archer/sounds/arrow_hit5.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="stop" />
			<name value="stop_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="50" />
			<animation path="models/log.g3d" />
			<sound enabled="false" />
		</skill>	
		
		<skill>
			<type value="upgrade" />
			<name value="upgrade_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="150" />
			<animation path="models/log.g3d" />
			<sound enabled="true" start-time="0.3">
				<sound-file path="sounds/anvil1.wav"/>
				<sound-file path="sounds/anvil2.wav"/>
				<sound-file path="sounds/anvil3.wav"/>
				<sound-file path="sounds/anvil4.wav"/>
			</sound>
		</skill>
		
		<skill>
			<type value="die" />
			<name value="die_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="../castle/destruction_models/blacksmith_destruction.g3d" />
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/tech_building_fall1.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>

	</skills>

	<commands>
		<command>
			<type value="produce"/>
			<name value="produce_worm" />
			<image path="../worm/images/swordman.bmp" />
			<unit-requirements />
			<upgrade-requirements />
			<produce-skill value="produce_skill"/>
			<produced-unit name="worm"/>
		</command>
		
		<command>
			<type value= "stop"/>
			<name value="attack_off"/>
			<image path="../defense_tower/images/defense_tower_attack_off.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

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