<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable>
    <storeData>
        <name>Flüssigdünger Produktion</name>
        <image>store_lfertilizer.dds</image>
        <price>45000</price>
        <dailyUpkeep>10</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>HOTTOOLS</brand>
        <specs>
            <capacity>50000</capacity>
            <fillTypes>fertilizer water</fillTypes>
        </specs>
		<functions>
			<function>$l10n_function_lfertilizer</function>
        </functions>
        <species>placeable</species>
        <category>globalCompanyPlaceable</category>
    </storeData>

    <placeableType>GC_ProductionFactoryPlaceable</placeableType>
    <filename>HoT_lFertilizer.i3d</filename>
    <placement testSizeX="21" testSizeZ="28" sizeX="21" sizeZ="28" useRandomYRotation="false" useManualYRotation="true" />
	
	<tipOcclusionUpdateArea sizeX="28" sizeZ="28" />	
	
	<clearAreas>
        <clearArea startIndex="6|0" widthIndex="6|1" heightIndex="6|2"/>
    </clearAreas>
	
	<leveling requireLeveling="true" maxSmoothDistance="5" maxSlope="30" maxEdgeAngle="20" >
        <levelAreas>
            <levelArea startNode="6|0" widthNode="6|1" heightNode="6|2" groundType="asphalt"/>
        </levelAreas>
    </leveling>
	
	<seasons>
        <maskAreas>
            <maskArea startNode="10|0" widthNode="10|0|0" heightNode="10|0|1" />
        </maskAreas>
    </seasons>
	
    <triggerMarkers>
        <triggerMarker node="4" />
    </triggerMarkers>
	
	<productionFactories>
		<productionFactory indexName="lFERTILIZER" saveId="globalCompany_lfertilzer">
			<guiInformation title="HoTProduktion_lFertilizer_FactoryName" imageFilename="store_lfertilizer.dds" description="HoTProduktion_lFertilizer_FactoryDescription" cameraFeed="gui_camera"/>
			
			<operation updateDelayMinutes="10" showInGlobalGUI="true" />
			
			<registerUnloadingTriggers>
				<unloadingTrigger name="UnloadingTriggerGrain" exactFillRootNode="exactFillRootNode1" palletTriggerNode="palletTrigger"/>
				<unloadingTrigger name="UnloadingTriggerLiquid" exactFillRootNode="exactFillRootNode2"  />
			</registerUnloadingTriggers>

			<registerLoadingTriggers>
				<loadingTrigger name="LoadingTrigger" triggerNode="trigger" fillLitersPerSecond="500" autoStart="false">
					<dischargeInfo dischargeNode="dischargeNode" />
					<sounds fillSoundIdentifier="fillSound01" />
					<effectNode effectNode="grain" materialType="unloading" materialTypeId="3" fadeTime="0.5" />
					<effectNode effectNode="smoke" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
				</loadingTrigger>
			</registerLoadingTriggers>
			
			<registerInputProducts>				
				<inputProduct name="IP_GRAIN" capacity="50000" title="HoTProduktion_lFertilizer_Input1" > 
					<fillTypes>
						<fillType name="fertilizer" />
						
					</fillTypes>
					
					<purchase fixedPricePerLitre="2" /> <!-- A little more than buying a pallet of wheat -->
					
					<inputMethods>
						<unloadingTrigger name="UnloadingTriggerGrain"/>
					</inputMethods>						
					
					<digitalDisplays>
						<display displayType="LEVEL" numbers="IN_Display1" emptyNumberColor="1 0 0 1" numberColor="1 1 0 1" fullNumberColor="0 1 0 1"/>
					</digitalDisplays>
				</inputProduct>
				<inputProduct name="IP_LIQUID" capacity="50000" title="HoTProduktion_lFertilizer_Input2">
					<fillTypes>
						<fillType name="water" />
						
					</fillTypes>				
					
					<purchase fixedPricePerLitre="0.1" /> <!-- A little more than buying a tank -->
					
					<inputMethods>
						<unloadingTrigger name="UnloadingTriggerLiquid"/>
					</inputMethods>		
					
							
					
					<digitalDisplays>
						<display displayType="LEVEL" numbers="IN_Display2" emptyNumberColor="1 0 0 1" numberColor="1 1 0 1" fullNumberColor="0 1 0 1"/>
					</digitalDisplays>
				</inputProduct>
			</registerInputProducts>
			
			<registerOutputProducts>
				<outputProduct name="OP_lFERTILIZER" fillType="liquidFertilizer" capacity="100000" >
					<outputMethods>		
						<loadingTrigger name="LoadingTrigger" />
						<objectSpawner xmlFilename="$data/objects/pallets/liquidTank/fertilizerTank.xml">
							<area startNode="start1" endNode="end1" />
							<area startNode="start2" endNode="end2" />
							<area startNode="start3" endNode="end3" />
						</objectSpawner>
					</outputMethods>	
					<digitalDisplays>
						<display displayType="LEVEL" numbers="OP_Display" emptyNumberColor="0 1 0 1" numberColor="1 1 0 1" fullNumberColor="1 0 0 1"/>
					</digitalDisplays>
				</outputProduct>
			</registerOutputProducts>
			
			<productLines>
				<productLine autoLineStart="true" outputPerHour="1000" title="HoTProduktion_lFertilizer_productLine_lfertilizer" showInGUI="true">
					<inputs>
						<inputProduct name="IP_GRAIN" percent="50" />
						<inputProduct name="IP_LIQUID" percent="50" />
					</inputs>					
					<outputs>
						<outputProduct name="OP_lFERTILIZER" percent="100" />
					</outputs>					
					<playerTrigger playerTriggerNode="PlayerTrigger" showPopupUI="true"/>					
					<operatingParts>						
						<sounds>
							<sound geSoundNode="audio"/>
						</sounds>
						<lighting>
							<beaconLights>
								<beaconLight node="beacon" filename="$data/shared/assets/beaconLights/lizard/beaconLight01.xml" />
							</beaconLights>
						</lighting>
					</operatingParts>
				</productLine>
			</productLines>	
			
			<i3dMappings>  
				<i3dMapping id="exactFillRootNode1" node="1|0|0" />
				<i3dMapping id="exactFillRootNode2" node="1|1|0" />
    			<i3dMapping id="IN_Display1" node="1|0|1" />
				<i3dMapping id="palletTrigger" node="1|0|2" />
    			<i3dMapping id="IN_Display2" node="1|1|1" />	
				<i3dMapping id="dischargeNode" node="2|0|1" />
				<i3dMapping id="OP_Display" node="2|1" />
				<i3dMapping id="start1" node="5|0" />
				<i3dMapping id="end2" node="5|1|0" />
				<i3dMapping id="start2" node="5|1" />
				<i3dMapping id="start3" node="5|2" />
    			<i3dMapping id="end3" node="5|2|0" />
				<i3dMapping id="end1" node="5|0|0" />
				<i3dMapping id="PlayerTrigger" node="3" />
				<i3dMapping id="beacon" node="7" />
				<i3dMapping id="trigger" node="2|0|0" />
				<i3dMapping id="grain" node="2|0|2|0" />
    			<i3dMapping id="smoke" node="2|0|2|1" />
    			<i3dMapping id="audio" node="8" />
				<i3dMapping id="gui_camera" node="9"/>
			</i3dMappings>				
		</productionFactory>
	</productionFactories>
</placeable>