<?xml version="1.0" standalone="no" ?>
<unit>
	<!-- *** parameters *** -->
	<parameters>
		<size value="6" />
		<height value="6" />
		<max-hp value="10000" regeneration="0"/>
		<max-ep value="0" />
		<armor value="0" />
		<armor-type value="stone"/>				
		<sight value="15" />
		<time value="300" />
		<multi-selection value="false" />
		<cellmap value="true">
			<row value="111111"/>
			<row value="111111"/>
			<row value="110001"/>
			<row value="110000"/>
			<row value="111101"/>
			<row value="111101"/>
		</cellmap>
		<levels/>
		<fields>
			<field value="land" />
		</fields>
		<properties>
			<property value="burnable"/>
		</properties>
		<light enabled="true" red="0.8" green="0.8" blue="0.5"/>
		<unit-requirements/>
		<upgrade-requirements />
		<resource-requirements>
			<resource name="gold" amount="100" />
			<resource name="stone" amount="300" />
			<resource name="wood" amount="150" />
		</resource-requirements>
		<resources-stored>
			<resource name= "gold" amount="2000"/>
			<resource name= "wood" amount="1200"/>				
			<resource name= "stone" amount="1500"/>				
			<resource name= "food" amount="150"/>	
			<resource name= "water" amount="150"/>	
		</resources-stored>
		<image path="images/castle.bmp" />
		<image-cancel path="../archer/images/tech_cancel.bmp"/>
		<meeting-point value="true" image-path="../barracks/images/meeting_point.bmp"/>
		<selection-sounds enabled="true">
			<sound path="../barracks/sounds/tech_click.wav" />
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="../barracks/sounds/tech_click.wav" />
		</command-sounds>
	</parameters>
	
	<!-- *** skills *** -->
	<skills>

		<skill>
			<type value="stop" />
			<name value="stop_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="100" />
			<animation path="models/keep.g3d" />
			<sound enabled="false" />
		</skill>

		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="200"/>
			<animation path="models/keep_upgrade.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="be_built" />
			<name value="be_built_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/keep_build.g3d" />
			<sound enabled="false" />
		</skill>

		<skill>
			<type value="upgrade"/>
			<name value="upgrade_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="300"/>
			<animation path="models/keep.g3d"/>
			<sound enabled="false"/>
		</skill>	
		
		<skill>
			<type value="produce" />
			<name value="produce_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/keep.g3d" />
			<sound enabled="false" />
		</skill>	
		
		<skill>
			<type value="die" />
			<name value="die_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/castle_destruction.g3d" />
			<sound enabled="true" start-time="0">
				<sound-file path="../barracks/sounds/tech_building_fall2.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>

	</skills>
	
	<!-- *** commands *** -->
	<commands>
	
		<command>
			<type value="produce"/>
			<name value="produce_peasant" />
			<image path="../peasant/images/worker.bmp" />
			<unit-requirements />
			<upgrade-requirements />
			<produce-skill value="produce_skill"/>
			<produced-unit name="peasant"/>
		</command>

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

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

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

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

		<command>
			<type value="morph"/>
			<name value="reinforce_stronghold"/>
			<image path="../fortress/images/castle.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "fortress"/>
			<discount value="0"/>
		</command>	

	</commands>
</unit>
