<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable>
    <storeData>
        <name>
			<de>Schweinestall Reithmayr</de>
			<en>Pigstabl Reithmayr</en>
		</name>
        <image>Store_Reithmayrstall.dds</image>
        <price>500000</price>
		<functions>
            <function>
			<de><![CDATA[Reithmayrstall]]></de>
			</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>10</dailyUpkeep>
        <brand>Lizard</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <placeableType>husbandry</placeableType>
    <filename>Reithmayrstall.i3d</filename>
    <placement testSizeX="5" testSizeZ="5" sizeX="11" sizeZ="9" useRandomYRotation="false" useManualYRotation="true"/>
   
    <hotspots>
        <hotspot name="Pig stable" fullName="$l10n_animals_pigPasture" imageName="PIG_STABLE" hidable="true" category="CATEGORY_TRIGGERS" />
    </hotspots>

    <leveling requireLeveling="true" maxSmoothDistance="8" maxSlope="30" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="0|13|0" widthNode="0|13|0|0" heightNode="0|13|0|1" groundType="concrete"/>
        </levelAreas>
    </leveling>
    
    <animatedObjects>
        <animatedObject saveId="Tor_Rechts" >
            <animation duration="2">
                <part node="0|10|0">
                    <keyFrame time="0.0" translation="9.896 2.245 -6.021"/>
                    <keyFrame time="2"translation="9.896 2.245 -15.159"/>
                </part>
            </animation>
            <controls triggerNode="0|10|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
        </animatedObject>
        <animatedObject saveId="Tor_Links" >
            <animation duration="2">
                <part node="0|11|1">
                    <keyFrame time="0.0" translation="9.878 2.342 5.569"/>
                    <keyFrame time="2"translation="9.878 2.342 11.367"/>
                </part>
            </animation>
            <controls triggerNode="0|11|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
        </animatedObject>
		        <animatedObject saveId="TorfluegelLinks" >
            <animation duration="2">
                <part node="0|12|1">
                    <keyFrame time="0.0" translation="6.496 2.723 -25.236"/>
                    <keyFrame time="2"translation="10.878 2.723 -25.236"/>
                </part>
            </animation>
            <controls triggerNode="0|12|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
        </animatedObject> 
		        <animatedObject saveId="FluegeltorRechts" >
            <animation duration="2">
                <part node="0|12|2">
                    <keyFrame time="0.0" translation="3.539 1.368 -25.101"/>
                    <keyFrame time="2"translation="0.001 1.368 -25.101"/>
                </part>
            </animation>
            <controls triggerNode="0|12|3" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
        </animatedObject>               		
    </animatedObjects>

    <husbandry saveId="Animals_PIG" hasStatistics="false">
        <modules>
            <module name="animals">
                <config type="PIG" navmeshNode="0|14" animalLoadTriggerNode="0|16" maxNumAnimals="500" husbandryFileName="$dataS/character/pigAnimalHusbandry.xml" placementRaycastDistance="2.0" carryingCapacity="100" rideableDeliveryStartNode="0|22|0" rideableDeliveryWidthNode="0|22|0|0" rideableDeliveryHeightNode="0|22|0|1" />
            </module>
            <module name="food">
                <config node="0|17" exactFillRootNode="0" animalPlacesNode="0|17|0|1" >
                    <fillPlane node="0|17|0|3" minY="-0.29" maxY="2" colorChange="true" />
                </config>
            </module>
            <module name="water">
                <config node="0|18|0" exactFillRootNode="0" fillTypes="WATER" acceptedToolTypes="undefined trailer">
                    <fillPlane node="0|18|0" minY="0.06" maxY="0.275" colorChange="true" />
                </config>
            </module>
            <module name="liquidManure">
                <config node="0|19|0" fillTypes="LIQUIDMANURE" triggerNode="19|0|0">
                    <fillPlane node="0|19|0|1" minY="0.02" maxY="0.5" />
                </config>
            </module>
            <module name="manure">
                <config startNode="0|20|1|0" widthNode="0|20|1|0|0" heightNode="0|20|1|0|1" fillType="MANURE"/>
            </module>
            <module name="foodSpillage">
                <config fillType="PIGFOOD">
                    <area startNode="0|17|0|2|0" widthNode="0|17|0|2|0|0" heightNode="0|17|0|2|0|1" />
                    <area startNode="0|17|0|2|1" widthNode="0|17|0|2|1|0" heightNode="0|17|0|2|1|1" />
                    <area startNode="0|17|0|2|2" widthNode="0|17|0|2|2|0" heightNode="0|17|0|2|2|1" />
                    <area startNode="0|17|0|2|3" widthNode="0|17|0|2|3|0" heightNode="0|17|0|2|3|1" />
                </config>
            </module>
            <module name="straw">
                <config node="0|21" exactFillRootNode="0" baleTriggerNode="2" fillTypes="STRAW">
                    <fillPlane node="0|21|1" minY="-0.1" maxY="0.0" colorChange="false" />
                </config>
            </module>
        </modules>
        <placementRaycast distance="2" />
    </husbandry>
		
</placeable>
