<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="cowHusbandryBarnMilk" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>
			<en>Polish Pasture For Cows</en>
			<de>Polnische Weide Für Kühe</de>
			<fr>Pâturage Polonais Pour Vaches</fr>
			<pl>Polskie Pastwisko Dla Krów</pl>
		</name>
        <image>store_PolishOldCowShed01.dds</image>
        <price>25000</price>
        <functions>
            <function>$l10n_function_animalPenCow</function>
            <function>$l10n_function_adjustableMeadow</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>5</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>PLACEABLE</species>
        <category>animalpens</category>
        <brush>
            <type>husbandry</type>
            <category>animals</category>
            <tab>cows</tab>
        </brush>
        <storeIconRendering>
            <settings cameraXRot="-20" cameraYRot="50" advancedBoundingBox="true"/>
        </storeIconRendering>
        <vertexBufferMemoryUsage>1003008</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>208128</indexBufferMemoryUsage>
        <textureMemoryUsage>16515072</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>PolishOldCowShed01.i3d</filename>
		<boughtWithFarmland>true</boughtWithFarmland>
        <canBeRenamed>true</canBeRenamed>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End" />
        </testAreas>
        <sounds>
            <place template="smallImp" />
            <placeLayered template="cowLayer" />
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelArea1Start" widthNode="levelArea1Width" heightNode="levelArea1Height" groundType="dirt"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height" />
    </indoorAreas>

    <foliageAreas />
	
    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        </updateAreas>
    </ai>
	
    <animatedObjects>
				<animatedObject saveId="Bramka" >
					<animation duration="4">
						<part node="Lancuch">
							<keyFrame time="0.0" translation="0.023 -0.188 3.677" rotation="0 0 0" visibility="true"/>
							<keyFrame time="0.2" translation="0.023 -0.188 3.677" rotation="0 0 0" visibility="false"/>
						</part>		
						<part node="Bramka">
							<keyFrame time="0.0" rotation="0 0 0"/>
							<keyFrame time="0.2" rotation="0 0 0"/>
							<keyFrame time="0.6" rotation="0 -100 0"/>
						</part>							
					</animation>
					<controls triggerNode="Trigger1" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
					<sounds>
						<moving linkNode="Trigger1" template="woodDoorSqueaksLarge"/>
						<posEnd linkNode="Trigger1" template="woodDoorOpen"/>
						<negEnd linkNode="Trigger1" template="woodDoorCloseRandom"/>
					</sounds>
				</animatedObject>
				
				<animatedObject saveId="Lampa" >
					<animation duration="1">
						<part node="Lampa">
							<keyFrame time="0" visibility="false" />
							<keyFrame time="0.4" visibility="true" />
						</part>
					</animation>    
						<controls triggerNode="lightTrigger" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOut" />
						<posEnd linkNode="lightTrigger" template="plasticDoorsOpen" />
						<negEnd linkNode="lightTrigger" template="plasticDoorsClose" />
				</animatedObject>
    </animatedObjects>

	
	<triggerMarkers>
        <triggerMarker node="markerMilk"         filename="$data/shared/assets/marker/markerIconMilk.i3d" />
        <triggerMarker node="markerFood"         filename="$data/shared/assets/marker/markerIconFood.i3d" />
        <triggerMarker node="markerAnimals"      filename="$data/shared/assets/marker/markerIconAnimals.i3d" />
        <triggerMarker node="markerLiquidManure" filename="$data/shared/assets/marker/markerIconSlurry.i3d" />
		<triggerMarker node="markerBales"   	 filename="$data/shared/assets/marker/markerIconBales.i3d" />
    </triggerMarkers>

    <hotspots>
        <hotspot type="COW" teleportNode="teleportNode" />
    </hotspots>

    <infoTrigger triggerNode="infoTrigger" />

    <husbandry saveId="Animals_COW" hasStatistics="false">
        <storage node="storage" fillTypes="LIQUIDMANURE MILK BUFFALOMILK STRAW MANURE" isExtension="false">
            <capacity fillType="LIQUIDMANURE" capacity="40000" />
            <capacity fillType="MILK"         capacity="18000" />
            <capacity fillType="BUFFALOMILK"  capacity="18000" />
            <capacity fillType="STRAW"        capacity="20000" />
            <capacity fillType="MANURE"       capacity="0" />
        </storage>

        <unloadingStation supportsExtension="true" storageRadius="50" hideFromPricesMenu="true">
            <unloadTrigger exactFillRootNode="exactFillRootNodeStraw" fillTypes="STRAW" />
            <unloadTrigger fillTypes="MANURE MILK BUFFALOMILK LIQUIDMANURE" />
			<baleTrigger triggerNode="baleTrigger1" fillTypes="STRAW" />
        </unloadingStation>

        <loadingStation supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="liquidManureTrigger" fillTypes="LIQUIDMANURE" fillLitersPerSecond="1200" aiNode="aiLoadingNodeLiquidManure" />
            <loadTrigger triggerNode="milkTrigger" fillTypes="MILK BUFFALOMILK" fillLitersPerSecond="1200" aiNode="aiLoadingNodeMilk"/>
        </loadingStation>
		
		<animals type="COW" maxNumAnimals="20" maxNumVisualAnimals="10" >
            <navigation rootNode="navigationRootNode" filename="navigationRootNode.i3d" />
            <loadingTrigger node="loadingTrigger" />
        </animals>

        <food capacity="25000" >
            <foodPlaces>
                <foodPlace node="foodPlace1" />
				<foodPlace node="foodPlace2" />
				<foodPlace node="foodPlace3" />
				<foodPlace node="foodPlace4" />
            </foodPlaces>
			<unloadTrigger exactFillRootNode="exactFillRootNodeFood" />
			<baleTrigger triggerNode="baleTrigger" />
        </food>

        <water automaticWaterSupply="true">
            <waterPlaces>
                <waterPlace node="waterPlace1" />
            </waterPlaces>
        </water>
		
		<straw>
            <manure factor="1.5" />
            <strawPlane node="strawPlane" minY="-0.48" maxY="-0.292" colorChange="false" />
        </straw>

         <fence xmlFilename="$data/placeables/brandless/fences/husbandries/cowFence/cowFence.xml">
            <sections>
                <section segmentId="SEGMENT" customizable="true">
                    <node node="fenceNode01" />
                    <node node="fenceNode02" />
                    <node node="fenceNode03" />
                    <node node="fenceNode04" />
                    <node node="fenceNode05" />
                </section>
            </sections>
        </fence>
		
		<meadow>
            <fruitType name="GRASS" eatableStartGrowthState="greenMiddle" eatableEndGrowthState="harvestReady" eatenGrowthState="greenSmall" />
            <fruitType name="MEADOW" eatableStartGrowthState="greenMiddle" eatableEndGrowthState="harvestReady" eatenGrowthState="greenSmall" />

            <createTask weedState="0">
                <fruit type="MEADOW" growthState="greenSmall" />
                <ground type="NONE" />
                <terrainGroundType name="grass" />
            </createTask>

            <clearTask>
                <fruit type="UNKNOWN" growthState="0" />
                <ground type="NONE" />
                <terrainGroundType name="gravel" />
                <polygon>
                    <node node="clearAreaPoint1" />
                    <node node="clearAreaPoint2" />
                    <node node="clearAreaPoint3" />
                    <node node="clearAreaPoint4" />
                </polygon>
            </clearTask>
        </meadow>	
    </husbandry>

    <i3dMappings>
		<i3dMapping id="Bramka" node="0>4|0" />
		<i3dMapping id="Lancuch" node="0>4|0|0" />
		<i3dMapping id="Trigger1" node="0>4|1" />
		<i3dMapping id="Lampa" node="0>19|0|2" />
		<i3dMapping id="Guzik" node="0>19|1" />
		<i3dMapping id="lightTrigger" node="0>19|2" />
	
        <i3dMapping id="clearArea1Start" node="0>5|0" />
        <i3dMapping id="clearArea1Width" node="0>5|0|0" />
        <i3dMapping id="clearArea1Height" node="0>5|0|1" />
        <i3dMapping id="levelArea1Start" node="0>6|0" />
        <i3dMapping id="levelArea1Width" node="0>6|0|0" />
        <i3dMapping id="levelArea1Height" node="0>6|0|1" />
        <i3dMapping id="indoorArea1Start" node="0>7|0" />
        <i3dMapping id="indoorArea1Width" node="0>7|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>7|0|1" />
		<i3dMapping id="testArea1Start" node="0>8|0" />
        <i3dMapping id="testArea1End" node="0>8|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>9|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>9|0|0" />
		
		<i3dMapping id="clearAreaPoint1" node="0>15|0|0" />
        <i3dMapping id="clearAreaPoint2" node="0>15|0|1" />
        <i3dMapping id="clearAreaPoint3" node="0>15|0|2" />
        <i3dMapping id="clearAreaPoint4" node="0>15|0|3" />
		<i3dMapping id="fenceNode01" node="0>16|0" />
        <i3dMapping id="fenceNode02" node="0>16|1" />
        <i3dMapping id="fenceNode03" node="0>16|2" />
        <i3dMapping id="fenceNode04" node="0>16|3" />
        <i3dMapping id="fenceNode05" node="0>16|4" />	
		
        <i3dMapping id="exactFillRootNodeFood" node="0>10|0" />
		<i3dMapping id="baleTrigger" node="0>10|1" />
        <i3dMapping id="foodPlace1" node="0>10|2|0" />
        <i3dMapping id="foodPlace2" node="0>10|2|1" />
        <i3dMapping id="foodPlace3" node="0>10|2|2" />
        <i3dMapping id="foodPlace4" node="0>10|2|3" />
		<i3dMapping id="waterPlace1" node="0>10|3|0" />
		<i3dMapping id="baleTrigger1" node="0>11|0" />
		<i3dMapping id="exactFillRootNodeStraw" node="0>11|1" />
        <i3dMapping id="strawPlane" node="0>11|2" />
		<i3dMapping id="liquidManureTrigger" node="0>12|0" />
        <i3dMapping id="aiLoadingNodeLiquidManure" node="0>12|1" />
        <i3dMapping id="milkTrigger" node="0>13|0" />
        <i3dMapping id="aiLoadingNodeMilk" node="0>13|1" />
        <i3dMapping id="navigationRootNode" node="0>14" />
        <i3dMapping id="markerMilk" node="0>17|2" />
        <i3dMapping id="markerAnimals" node="0>17|3" />
        <i3dMapping id="markerLiquidManure" node="0>17|4" />
        <i3dMapping id="markerFood" node="0>17|5" />
		<i3dMapping id="markerBales" node="0>17|6" />
		<i3dMapping id="storage" node="0>17" />
		<i3dMapping id="loadingTrigger" node="0>17|0" />
        <i3dMapping id="teleportNode" node="0>17|1" />
        <i3dMapping id="infoTrigger" node="0>18" />
    </i3dMappings>
</placeable>
