<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="chickenHusbandryMast" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>  
		<en>Chicken Fattening House</en>
        <de>Hühner Maststall</de>
		</name>
        <image>store/store_chickenmast.png</image>
        <price>310000</price>
        <functions>
            <function>$l10n_function_animalPenChicken</function>
        </functions>
        <lifetime>600</lifetime>
        <dailyUpkeep>130</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <brush>
            <type>placeable</type>
            <category>animals</category>
            <tab>chickens</tab>
        </brush>
        <vertexBufferMemoryUsage>875776</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>178688</indexBufferMemoryUsage>
        <textureMemoryUsage>13828096</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>i3d/chickenmast.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>true</boughtWithFarmland>		
    </base>
	
    <placement useRandomYRotation="false" useManualYRotation="true">
        <testAreas>
            <testArea startNode="testAreaStart01" endNode="testAreaEnd01" />
        </testAreas>

        <sounds>
            <place template="medImp" />
            <placeLayered template="chickenLayer" />
        </sounds>
    </placement>	

    <clearAreas>
         <clearArea startNode="clearAreaStart01" widthNode="clearAreaWidth01" heightNode="clearAreaHeight01"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
         <levelAreas>
             <levelArea startNode="levelAreaStart01" widthNode="levelAreaWidth01" heightNode="levelAreaHeight01" groundType="dirt"/>
         </levelAreas>
    </leveling>
	
    <foliageAreas>
    </foliageAreas>	

    <indoorAreas>
        <indoorArea startNode="indoorAreaStart01" widthNode="indoorAreaWidth01" heightNode="indoorAreaHeight01"/>
    </indoorAreas>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01" />
        </updateAreas>
    </ai>

    <triggerMarkers>
        <triggerMarker node="markerFood"			filename="$data/shared/assets/marker/markerIconFood.i3d" />
        <triggerMarker node="markerAnimals"    		filename="$data/shared/assets/marker/markerIconAnimals.i3d" />
        <triggerMarker node="markerBales"       	filename="$data/shared/assets/marker/markerIconBales.i3d" />
        <triggerMarker node="warningStripes" />		
    </triggerMarkers>
	
	
	<animatedObjects>
        <animatedObject saveId="Tor1" >
            <animation duration="3">
                <part node="0>14|0">
                    <keyFrame time="0.0" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="-6.65 0 0"/>
                </part>
            </animation>
            <controls triggerNode="0>14|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
			</animatedObject>
    </animatedObjects>			
	
    <hotspots>
         <hotspot type="CHICKEN" teleportNode="teleportNode" />
    </hotspots>

    <infoTrigger triggerNode="infoTrigger" />

    <husbandry saveId="Animals_CHICKEN" hasStatistics="false">
        <storage node="storage" fillTypes="MANURE STRAW" isExtension="false">
            <capacity fillType="STRAW"        capacity="45000" />
            <capacity fillType="MANURE"       capacity="0" />
        </storage>

        <unloadingStation supportsExtension="true" storageRadius="50" hideFromPricesMenu="true">
             <unloadTrigger exactFillRootNode="exactFillRootNodeStraw" fillTypes="STRAW" >
                <baleTrigger triggerNode="baleTriggerStraw"/>
            </unloadTrigger>
            <unloadTrigger fillTypes="MANURE" />
        </unloadingStation>
		 
        <loadingStation supportsExtension="true" storageRadius="50" fillTypes="straw" />		 
		 
        <animals type="CHICKEN" maxNumAnimals="1000">
           <navigation rootNode="navigationRootNode" filename="i3d/navigationmesh.i3d" />
            <loadingTrigger node="loadingTrigger" />
        </animals>

        <food capacity="24000" >
            <unloadTrigger exactFillRootNode="exactFillRootNodeFood" />
            <baleTrigger triggerNode="baleTrigger"/>			 
            <foodPlane node="foodPlane" minY="0.013" maxY="0.155" changeVisibility="true" defaultFillType="WHEAT"/>		
        </food>

	  <water automaticWaterSupply="true" />
	  
        <pallets>
            <palletSpawner fillTypes="EGG" maxNumPallets="6">
                <palletTrigger node="palletTrigger" />
                <spawnPlaces>
                    <spawnPlace startNode="palletArea1Start" endNode="palletArea1End" />
                    <spawnPlace startNode="palletArea2Start" endNode="palletArea2End" />
                </spawnPlaces>
            </palletSpawner>
        </pallets>
		
		<straw>
			<manure factor="1.5" />
			<strawPlane node="strawPlane" minY="-0.1" maxY="-0.045" changeVisibility="true" />
		</straw>			    
    </husbandry>
	 

    <i3dMappings>
        <i3dMapping id="clearAreaStart01" node="0>0|0" />
        <i3dMapping id="clearAreaWidth01" node="0>0|0|0" />
        <i3dMapping id="clearAreaHeight01" node="0>0|0|1" />		
        <i3dMapping id="levelAreaStart01" node="0>1|0" />
        <i3dMapping id="levelAreaWidth01" node="0>1|0|0" />
        <i3dMapping id="levelAreaHeight01" node="0>1|0|1" />		
        <i3dMapping id="indoorAreaStart01" node="0>2|0" />
        <i3dMapping id="indoorAreaWidth01" node="0>2|0|0" />
        <i3dMapping id="indoorAreaHeight01" node="0>2|0|1" />	
        <i3dMapping id="testAreaStart01" node="0>3|0" />
        <i3dMapping id="testAreaEnd01" node="0>3|0|0" />
        <i3dMapping id="tipOcclusionUpdateAreaStart01" node="0>4|0" />
        <i3dMapping id="tipOcclusionUpdateAreaEnd01" node="0>4|0|0" />
        <i3dMapping id="palletTrigger" node="0>5|0" />
        <i3dMapping id="palletArea1Start" node="0>5|1" />
        <i3dMapping id="palletArea1End" node="0>5|1|0" />
        <i3dMapping id="palletArea2Start" node="0>5|2" />
        <i3dMapping id="palletArea2End" node="0>5|2|0" />			
        <i3dMapping id="teleportNode" node="0>6" />
        <i3dMapping id="exactFillRootNodeFood" node="0>7|0" />
        <i3dMapping id="baleTrigger" node="0>7|1" />		
        <i3dMapping id="foodPlane" node="0>7|5" />				
        <i3dMapping id="storage" node="0>8" />
        <i3dMapping id="navigationRootNode" node="0>9" />
        <i3dMapping id="infoTrigger" node="0>10" />
        <i3dMapping id="loadingTrigger" node="0>11" />
        <i3dMapping id="markerAnimals" node="0>12|0" />
        <i3dMapping id="markerFood" node="0>12|1" />
        <i3dMapping id="markerBales" node="0>12|2" />
        <i3dMapping id="warningStripes" node="0>12|3" />		
		<i3dMapping id="strawPlane" node="0>13|0" />
        <i3dMapping id="baleTriggerStraw" node="0>13|1" />
        <i3dMapping id="exactFillRootNodeStraw" node="0>13|2" />				
    </i3dMappings>
</placeable>
