
# # # # # # # # # # # # # # # # # # # # # # #
#
#  Begin Stove/Fireplace
#
# # # # # # # # # # # # # # # # # # # # # # #

BEGIN ProductionRule
	Rule			 Storage
	Material		 Log
	Container		 FireplaceLogRack
	Distribution	 Nearest
	MinSlotId		 0
	MaxSlotId		 1
	Condition		 NotLoaded
END


# # # # # # # # # # # # # # # # # # # # # # #
#
#  End Stove/Fireplace
#
# # # # # # # # # # # # # # # # # # # # # # #

BEGIN ProductionRule
	Rule				 Storage
	Material			 MetroStationEarnings
	Room				 Exports
	Distribution		 Random
END


#######################################################
#
#  Begin Real-time Basketball
#
#######################################################

BEGIN ProductionRule
	Rule			 Storage
	Material		 Basketball3
	Container		 BasketballContainer3
	Distribution	 Nearest
	MinSlotId		 0
	MaxSlotId		 7
	Condition		 EntityDead
END

#######################################################
#
#  End Real-time Basketball
#
#######################################################



#######################################################
#
#  Begin Border Changer
#
#######################################################



#######################################################
#
#  End Border Changer
#
#######################################################



#######################################################
#
#  Begin Branch Library
#
#######################################################

BEGIN ProductionRule
	Rule				 Storage
	Material			 LibraryBookSorted
	Container			 LibraryBookshelf
	Room				 Library
	Distribution		 Random
END

BEGIN ProductionRule
    Rule                Storage
    Material            LibraryBookSorted
    Container           ShortBookcase
    Room                Library
    Distribution        Random
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LibraryBookSorted
	Container			 LibraryBookshelf
	Room				 BranchLibrary
	Distribution		 Random
END

BEGIN ProductionRule
    Rule                Storage
    Material            LibraryBookSorted
    Container           ShortBookcase
    Room                BranchLibrary
    Distribution        Random
END


#######################################################
#
#  End Branch Library
#
#######################################################



#######################################################
#
#  Begin Cemetery
#
#######################################################


#removed HighPriority from hearse
BEGIN ProductionRule
    Rule                 Entity
    Container            Hearse
    Distribution         Random
    MaxSlotId            3
    Condition            EntityDead
END

BEGIN ProductionRule
	Rule				 Entity
	Container			 GraveCoffin
	Room				 Morgue
	Distribution		 Nearest
	MaxSlotId			 0
	Condition			 EntityDead
	Properties			 HighPriority
	Worker				 GraveDigger
END

BEGIN ProductionRule
	Rule				 Entity
	Container			 EmergencyChinookHook
	Distribution		 Nearest
	MinSlotId			 0
	MaxSlotId			 7
	Condition			 EntityDead
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Entity
	Container			 EmergencyTruckBay
	Distribution		 Nearest
	MinSlotId			 0
	MaxSlotId			 7
	Condition			 EntityDead
	Properties			 HighPriority
END

BEGIN ProductionRule
    Rule                 Entity
    Container            MorgueSlab
    Room                 Morgue
    Distribution         Random
    Condition            EntityDead
    Properties           HighPriority
END

BEGIN ProductionRule
    Rule                 Entity
    Room                 Morgue
    Distribution         Random
    Condition            EntityDead
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffin
	Container			 SmallTableMorgue
	MinSlotId			 4
	MaxSlotId			 5
	Room				 Morgue
	Distribution		 Nearest
	Condition			 NotLoaded
    Worker				 GraveDigger
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffin
	Room				 Exports
	Distribution		 Nearest
	Condition			 NotLoaded
	Worker				 Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 CrematoriumUrn
	Room				 Exports
	Distribution		 Nearest
	Worker				 Prisoner
	Worker				 Workman
	Worker				 GraveDigger
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffinParlour
	Container			 SmallTableFP
	MinSlotId			 4
	MaxSlotId			 5
	Room				 FuneralParlour
	Distribution		 Nearest
	Condition			 NotLoaded
    Worker				 GraveDigger
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffinParlour
	Container			 ParlourAltar
	MinSlotId			 3
	MaxSlotId			 3
	Room				 FuneralParlour
	Distribution		 Nearest
	Condition			 NotLoaded
	Worker				 GraveDigger
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffinParlourStaff
	Container			 ParlourAltarStaff
	MinSlotId			 3
	MaxSlotId			 3
	Room				 FuneralParlour
	Distribution		 Nearest
	Condition			 NotLoaded
	Worker				 GraveDigger
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffinParlourStaff
	Container			 SmallTableFP
	MinSlotId			 4
	MaxSlotId			 5
	Room				 FuneralParlour
	Distribution		 Nearest
	Condition			 NotLoaded
    Worker				 GraveDigger
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffinLoaded
	Container			 GraveUnderConstruction1
	MinSlotId			 3
	MaxSlotId			 3
	Condition			 NotLoaded
	Distribution		 Random
    Worker				 GraveDigger
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffinStaffLoaded
	Container			 GraveStaffUnderConstruction1
	MinSlotId			 3
	MaxSlotId			 3
	Condition			 NotLoaded
	Distribution		 Random
    Worker				 GraveDigger
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffinLoaded
	Container			 Crematorium
	MinSlotId			 3
	MaxSlotId			 7
	Room				 Cemetery
	Distribution		 Nearest
	Condition			 NotLoaded
    Worker				 GraveDigger
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 GraveCoffinStaffLoaded
	Container			 Crematorium
	MinSlotId			 3
	MaxSlotId			 7
	Room				 Cemetery
	Distribution		 Nearest
	Condition			 NotLoaded
    Worker				 GraveDigger
	Properties			 HighPriority
END

BEGIN Processor
	Processor			 ParlourAltar
	Input				 None
	Output				 None
	OperatingTime		 0
    Worker				 GraveDigger
END

BEGIN Processor
	Processor			 GraveUnderConstruction1
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 GraveDigger
END

BEGIN Processor
	Processor			 GraveStaffUnderConstruction1
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 GraveDigger
END

BEGIN Processor
	Processor			 SmallTableMorgue
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
	Worker				 GraveDigger
END

BEGIN Processor
	Processor			 Crematorium
	Object				 Crematorium
	Input				 CrematoriumCoffinStacked
	InputCount			 1
	Output				 CrematoriumCoffinStacked
	OutputCount			 1
	OperatingTime		 2
	Worker				 GraveDigger
END

BEGIN Processor
	Processor			 SmallTableFP
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
	Worker				 GraveDigger
	Worker				 SomeFriendParlour1
	Worker				 SomeFriendParlour2
	Worker				 SomeFriendParlour3
	Worker				 SomeFriendParlour4
	Worker				 SomeFriendParlour5
END

#######################################################
#
#  End Cemetery
#
#######################################################



#######################################################
#
#  Begin Controlled Demolition
#
#######################################################

BEGIN ProductionRule       
    Rule                 Storage
    Material             ExplosiveCharge666  
    Container            Table
    Room                 Armoury 
	Distribution		 Random
    Condition            NotLoadedIsStack
	MinSlotId			 0
    MaxSlotId			 3
    StackInRoom          Armoury
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             ExplosiveCharge666  
    Container            SmallTable
    Room                 Armoury 
	Distribution		 Random
    Condition            NotLoadedIsStack
	MinSlotId			 0
    MaxSlotId			 1
    StackInRoom          Armoury
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             ExplosiveCharge666  
    Container            OakTable
    Room                 Armoury 
	Distribution		 Random
    Condition            NotLoadedIsStack
	MinSlotId			 0
    MaxSlotId			 3
    StackInRoom          Armoury
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             ExplosiveCharge666
    Distribution         Random
	Room                 Armoury
    Condition            NotLoadedIsStack  
    StackInRoom          Armoury
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             Detonator666  
    Container            Table
    Room                 Armoury 
	Distribution		 Random
    Condition            NotLoadedIsStack
	MinSlotId			 0
    MaxSlotId			 3
    StackInRoom          Armoury
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             Detonator666  
    Container            SmallTable
    Room                 Armoury 
	Distribution		 Random
    Condition            NotLoadedIsStack
	MinSlotId			 0
    MaxSlotId			 1
    StackInRoom          Armoury
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             Detonator666  
    Container            OakTable
    Room                 Armoury 
	Distribution		 Random
    Condition            NotLoadedIsStack
	MinSlotId			 0
    MaxSlotId			 3
    StackInRoom          Armoury
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             Detonator666  
    Distribution         Random
	Room                 Armoury
    Condition            NotLoadedIsStack  
    StackInRoom          Armoury
END

#######################################################
#
#  End Controlled Demolition
#
#######################################################




#######################################################
#
#  Begin Advanced Roads 2.0
#
#######################################################


BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerTerminal
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerTerminalI
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerDeliveries
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerBuilding
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerFloors
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerLaundry
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerFood
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerVending
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerForest
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerWorkshop
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerOther
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerExports
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerGarbage
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerIntake
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerMinSec
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerMedSec
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 GrantCheckerEmergency
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 PrisonerIntakeCashMinSec
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 PrisonerIntakeCashNormal
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 PrisonerIntakeCashMaxSec
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 PrisonerIntakeCashSuperMax
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 PrisonerIntakeCashDeathRow
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 PrisonerIntakeCashInsane
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule
    Rule                 Storage
	Material			 PrisonerIntakeCashLegendary
    Room                 Exports
    Distribution         Random
END

#######################################################
#
#  Begin Limo Garage 2.0
#
#######################################################

#######################################################
#
#  End Limo Garage 2.0
#
#######################################################



#######################################################
#
#  Begin Customizable Control Booths
#
#######################################################


# Slots 0, 1, 2 hold utility panels (left side of a display)
# Slots 3, 4, 5 hold pager panels (right side of a display)

BEGIN ProductionRule
	Rule				 Storage
	Material			 UtilityPanel
	Container			 UtilityBooth
	Distribution		 Nearest
	MinSlotId			 0
	MaxSlotId			 2
	Properties			 HighPriority
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Pager
	Container			 UtilityBooth
	Distribution		 Nearest
	MinSlotId			 3
	MaxSlotId			 5
	Properties			 HighPriority
	Condition			 NotLoaded
END

# below are just eyecandy display panels

BEGIN ProductionRule
	Rule				 Storage
	Material			 DisplayPanelLeft
	Container			 UtilityBooth
	Distribution		 Nearest
	MinSlotId			 0
	MaxSlotId			 2
	Properties			 HighPriority
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 DisplayPanelRight
	Container			 UtilityBooth
	Distribution		 Nearest
	MinSlotId			 3
	MaxSlotId			 5
	Properties			 HighPriority
	Condition			 NotLoaded
END


#######################################################
#
#  End Customizable Control Booths
#
#######################################################



#######################################################
#
#  Begin Explosive SmartPhone
#
#######################################################


BEGIN Processor
	Processor			 SortingTable
	Input				 MailUnsorted
	Output				 MailSorted
	OperatingTime		 5.0
	Worker				 Lawyer
	Worker				 Guard
	Worker				 Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetAluminium
	Container			 PhonePress
	Room				 PhoneWorkshop
	Distribution		 NonCompeting
	Properties			 HighPriority
	Worker				 SmartPhoneGenius
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetAluminium
	Container			 PhonePress
	Room				 PhoneWorkshop
	Distribution		 OutOfStock
	Properties			 HighPriority
	Worker				 SmartPhoneGenius
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetAluminium
	Container			 AluminiumStorageRack
	Room				 PhoneWorkshop
	Distribution		 NonCompeting
	MinSlotId			 1
	MaxSlotId			 7
	Properties			 HighPriority
	Condition			 NotLoaded
	Worker				 SmartPhoneGenius
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetAluminium
	Room				 PhoneWorkshop
	Distribution		 NonCompeting
	Condition			 NotLoaded
	Worker				 SmartPhoneGenius
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PressedAluminium
	Container			 PhoneTable
	Distribution		 NonCompeting
	Properties			 HighPriority
	Worker				 SmartPhoneGenius
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PressedAluminium
	Container			 PhoneTable
	Distribution		 OutOfStock
	Properties			 HighPriority
	Worker				 SmartPhoneGenius
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PressedAluminium
	Container			 AluminiumStorageRack
	Room				 PhoneWorkshop
	Distribution		 NonCompeting
	MinSlotId			 1
	MaxSlotId			 7
	Properties			 HighPriority
	Condition			 NotLoaded
	Worker				 SmartPhoneGenius
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SeizedSmartPhone
	Container			 SmallTablePhoneWorkshop
	MinSlotId			 1
	MaxSlotId			 6
	Room				 PhoneWorkshop
    StackInRoom          PhoneWorkshop
	Distribution		 NonCompeting
	Worker				 SmartPhoneGenius
    Worker				 Workman
    Worker				 Guard
    Worker				 Janitor
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SeizedSmartPhone
	Container			 R4_GardenTable
	MinSlotId			 4
	MaxSlotId			 6
	Room				 R4_Recycling
	Distribution		 NonCompeting
	Worker				 SmartPhoneGenius
    Worker				 Workman
    Worker				 Guard
    Worker				 Janitor
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SeizedSmartPhone
	Room				 Exports
	Distribution		 Nearest
	Worker				 SmartPhoneGenius
    Worker				 Workman
    Worker				 Guard
    Worker				 Janitor
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 AssembledSmartPhone
	Container			 SmallTablePhoneWorkshop
	MinSlotId			 1
	MaxSlotId			 6
	Room				 PhoneWorkshop
    StackInRoom          PhoneWorkshop
	Distribution		 NonCompeting
	Properties			 HighPriority
	Worker				 SmartPhoneGenius
    Worker				 Prisoner
    Worker				 Workman
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 AssembledSmartPhone
	Room				 Exports
	Distribution		 Nearest
	Worker				 SmartPhoneGenius
	Worker				 Prisoner
	Worker				 Workman
END

BEGIN Processor
    Processor            PhonePress
    Input                SheetAluminium
    InputCount           1
    OutputCount          1
    Output               PressedAluminium
    OperatingTime        5.0
	Worker				 Prisoner
	Worker				 SmartPhoneGenius
END

BEGIN Processor
    Processor            PhoneTable
    Input                PressedAluminium
    Output               AssembledSmartPhone
    InputCount           1
    OutputCount          1
    OperatingTime        10.0
	Worker				 Prisoner
	Worker				 SmartPhoneGenius
    BEGIN AlternateOutput
        Type             FaultySmartPhone 
        Count            1
        Chance           0.025
    END
	Properties			 ShowDuringOperation
END

# define dummy processor so modded staff know they can put stuff in here and operate it when required

BEGIN Processor
    Processor            AluminiumStorageRack
    Input                SheetAluminium
    InputCount           3
    OutputCount          3
    Output               PressedAluminium
    OperatingTime        0
    Properties           ShowDuringOperation
	Worker				 SmartPhoneGenius
    Worker               Prisoner
END

BEGIN Processor
	Processor			 SmallTablePhoneWorkshop
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 SmartPhoneGenius
	Worker				 Prisoner
	Worker				 Workman
END

#######################################################
#
#  End Explosive SmartPhone
#
#######################################################



#######################################################
#
#  Begin High Efficiency Condensing Boiler
#
#######################################################



#######################################################
#
#  End High Efficiency Condensing Boiler
#
#######################################################



#######################################################
#
#  Begin Prisoner Forestry
#
#######################################################

BEGIN ProductionRule
	Rule				 Storage
	Material			 ForestryTreeSapling
	Container			 LogStorageRack
	Room				 PrisonForestry
	Distribution		 NonCompeting
	MinSlotId			 1
	MaxSlotId			 7
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 ForestryTreeSapling
	Container			 LogStorageRack
	Room				 PrisonForestry
	Distribution		 OutOfStock
	MinSlotId			 1
	MaxSlotId			 7
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

#######################################################
#
#  End Prisoner Forestry
#
#######################################################



#######################################################
#
#  Begin Lottery 2.0
#
#######################################################

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackLottery
	Container			 VendingStorageRack
	Room				 LotteryVault
	Distribution		 Random
    MinSlotId            0
	MaxSlotId			 7
	Worker				 Janitor
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackLottery
	Room				 LotteryVault
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackLottery
	Room				 Storage
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingLotteryCash
	Container			 VendingLotterySafe
	Distribution		 Random
    MinSlotId            0
	MaxSlotId			 0
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingLotteryCash
	Container			 VendingMoneySafe
	Room				 LotteryVault
	Distribution		 Random
    MinSlotId            0
	MaxSlotId			 0
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingLotteryCash
	Room				 LotteryVault
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Win5000
	Room				 Exports
	Distribution		 Random
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Lost5000
	Room				 Exports
	Distribution		 Random
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LotteryJackpot
	Room				 Exports
	Distribution		 Random
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PrisonLotterySuperJackpot
	Room				 Exports
	Distribution		 Random
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PrisonLotteryMegaJackpot
	Room				 Exports
	Distribution		 Random
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SylvesterLotterySuperJackpot
	Room				 Exports
	Distribution		 Random
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SylvesterLotteryMegaJackpot
	Room				 Exports
	Distribution		 Random
	Worker				 VendingManager
END

#######################################################
#
#  End Lottery 2.0
#
#######################################################



#######################################################
#
#  Begin Recycling 4.0
#
#######################################################

# preprocessed garbage

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_UnsortedTrash
	Distribution		 Nearest
	Container			 R4_TrashBin
	MinSlotId			 0
	MaxSlotId			 7
    Properties           HighPriority
	Condition			 NotLoaded
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Cook
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
	Worker				 PlantationWorker
	Worker				 GraveDigger
END


# unsorted garbage coming from TrashBin gets processed

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_UnsortedGarbage
	Room				 R4_Recycling
	Container			 R4_RecycleDeskProcessor
	Distribution		 NonCompeting
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_UnsortedGarbage
	Room				 R4_Recycling
	Container			 R4_RecycleDeskProcessor
    Distribution         OutOfStock
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_UnsortedGarbage
	Container			 R4_RecycleTable
	Room				 R4_Recycling
	Distribution		 Nearest
	MinSlotId			 4
	MaxSlotId			 5
    Condition			 NotLoadedOnTable
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_UnsortedGarbage
	Container			 Table
	Room				 R4_Recycling
	Distribution		 Nearest
	MinSlotId			 0
	MaxSlotId			 3
    Condition			 NotLoadedOnTable
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END


# sorted garbage goes to compactor

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_SortedGarbage
	Distribution		 NonCompeting
	Container			 R4_TrashCompactor
	MinSlotId			 0
	MaxSlotId			 7
    Properties           HighPriority
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_SortedGarbageExport
	Room				 Exports
	Distribution		 Random
    Properties           HighPriority
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END


# green garbage goes to garden or greenhouse

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenGarbage
	Container			 R4_RecycleBin
	MinSlotId			 0
	MaxSlotId			 7
	Distribution		 NonCompeting
    Properties           HighPriority
	Condition			 NotLoaded
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenGarbage
	Container			 R4_RecycleBin
	MinSlotId			 0
	MaxSlotId			 7
    Distribution         OutOfStock
    Properties           HighPriority
	Condition			 NotLoaded
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenGarbage
	Room				 Exports
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END


# various garbage processors

BEGIN Processor
	Processor			 R4_RecycleDeskProcessor
	Input				 R4_UnsortedGarbage
	InputCount			 1
	Output				 R4_SortedGarbage
	OutputCount			 1
    BEGIN AlternateOutput
        Type             R4_GreenGarbage 
        Count            1
        Chance           0.1
    END
	Object				 R4_RecycleDeskProcessor
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Qualification		 R4_RecycleGarbage
	OperatingTime		 3.0
	Properties			 ShowDuringOperation
END

BEGIN Processor
	Processor			 R4_RecycleTable
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 R4_RecyclingWorker
	Worker				 Prisoner
	Worker				 Gardener
	Worker				 Workman
	Worker				 Janitor
	Qualification		 R4_RecycleGarbage
END

#######################################################
#
#  Begin Simple Garden Mod by Elfylia
#
#######################################################

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_SuperCompost
	Container			 R4_GardenControl
	Distribution		 OutOfStock
	MinSlotId			 4
	MaxSlotId			 4
	Worker				 Prisoner
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_SuperCompost
	Container			 R4_GardenControl
	Distribution		 NonCompeting
	MinSlotId			 4
	MaxSlotId			 4
	Worker				 Prisoner
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenCompost
	Container			 R4_GardenControl
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 1
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenhouseCompost
	Container			 R4_GardenControl
	Room				 R4_Greenhouse
	Distribution		 Nearest
	MinSlotId			 1
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenCompost
	Room				 R4_Garden
	Distribution		 Nearest
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenhouseCompost
	Room				 R4_Greenhouse
	Distribution		 Nearest
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END



BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenSeed
	Container			 R4_GardenControl
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 0
	MaxSlotId			 0
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenSeed
	Room				 R4_Garden
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenhouseSeed
	Container			 R4_GardenControl
	Room				 R4_Greenhouse
	Distribution		 Nearest
	MinSlotId			 0
	MaxSlotId			 0
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenhouseSeed
	Room				 R4_Greenhouse
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END



BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenFertilizer
	Container			 R4_GardenControl
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 2
	MaxSlotId			 2
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenFertilizer
	Room				 R4_Garden
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenhouseFertilizer
	Container			 R4_GardenControl
	Room				 R4_Greenhouse
	Distribution		 Nearest
	MinSlotId			 2
	MaxSlotId			 2
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenhouseFertilizer
	Room				 R4_Greenhouse
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END



BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenDDT
	Container			 R4_GardenControl
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 3
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenDDT
	Room				 R4_Garden
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenhouseDDT
	Container			 R4_GardenControl
	Room				 R4_Greenhouse
	Distribution		 Nearest
	MinSlotId			 3
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GreenhouseDDT
	Room				 R4_Greenhouse
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END



BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenTomato
	Container			 R4_GardenTable
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 3
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenTomato
	Room				 Exports
	Distribution		 Random
	Worker				 Prisoner
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenCucumber
	Container			 R4_GardenTable
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 4
	MaxSlotId			 4
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenCucumber
	Container			 R4_GardenTable
	Room				 R4_Greenhouse
	Distribution		 Nearest
	MinSlotId			 4
	MaxSlotId			 4
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenCucumber
	Room				 Exports
	Distribution		 Random
	Worker				 Prisoner
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenRose
	Container			 R4_GardenTable
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 5
	MaxSlotId			 5
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenRose
	Container			 R4_GardenTable
	Room				 R4_Greenhouse
	Distribution		 Nearest
	MinSlotId			 5
	MaxSlotId			 5
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenRose
	Room				 Exports
	Distribution		 Random
	Worker				 Prisoner
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenLily
	Container			 R4_GardenTable
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 6
	MaxSlotId			 6
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenLily
	Container			 R4_GardenTable
	Room				 R4_Greenhouse
	Distribution		 Nearest
	MinSlotId			 6
	MaxSlotId			 6
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenLily
	Room				 Exports
	Distribution		 Random
	Worker				 Prisoner
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingApple
	Container			 R4_GardenTable
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 7
	MaxSlotId			 7
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingApple
	Room				 Exports
	Distribution		 Random
	Worker				 Prisoner
	Worker				 R4_GardenWorker
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingCherry
	Container			 R4_GardenTable
	Room				 R4_Garden
	Distribution		 Nearest
	MinSlotId			 6
	MaxSlotId			 6
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 R4_GardenWorker
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingCherry
	Room				 Exports
	Distribution		 Random
	Worker				 Prisoner
	Worker				 R4_GardenWorker
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenPrunedPlant
	Container			 R4_RecycleBin
	MinSlotId			 0
	MaxSlotId			 7
	Distribution		 Nearest
    Properties           HighPriority
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenDeadPlant
	Container			 R4_RecycleBin
	MinSlotId			 0
	MaxSlotId			 7
	Distribution		 Nearest
    Properties           HighPriority
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_GardenPlantStruck
	Container			 R4_RecycleBin
	MinSlotId			 0
	MaxSlotId			 7
	Distribution		 Nearest
    Properties           HighPriority
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
END

BEGIN Processor
	Processor			 R4_GardenTable
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
	Worker				 R4_GardenWorker
    Worker				 R4_GreenhouseWorker
	Worker				 Gardener
	Worker				 Workman
	Worker				 Janitor
END


#######################################################
#
#  End Simple Garden Mod by Elfylia
#
#######################################################


#######################################################
#
#  End Recycling
#
#######################################################



#######################################################
#
#  Begin Road Sensors Compact Edition
#
#######################################################



#######################################################
#
#  End Road Sensors Compact Edition
#
#######################################################



#######################################################
#
#  Begin Sauna
#
#######################################################



#######################################################
#
#  End Sauna
#
#######################################################



#######################################################
#
#  Begin Servers and more
#
#######################################################


BEGIN ProductionRule       
    Rule                 Storage
    Material             PiledUpBoringPaperWork 
    Container            TableWorkPCLinkUp
    Room                 OfficeSimulationRoom
	MinSlotId			 0
	MaxSlotId			 0
    Distribution         OutOfStock
	Condition			 NotLoaded
	Properties			 HighPriority
	Worker				 Prisoner
	Worker				 SimulationOfficeManager
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PiledUpBoringPaperWork 
    Container            TableWorkPCLinkUp
    Room                 OfficeSimulationRoom
	MinSlotId			 0
	MaxSlotId			 0
    Distribution         NonCompeting
	Condition			 NotLoaded
	Properties			 HighPriority
	Worker				 Prisoner
	Worker				 SimulationOfficeManager
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PiledUpBoringPaperWork 
    Container            TableWorkPCLinkDown
    Room                 OfficeSimulationRoom
	MinSlotId			 1
	MaxSlotId			 1
    Distribution         NonCompeting
	Properties			 HighPriority
	Worker				 Prisoner
	Worker				 SimulationOfficeManager
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             ProcessedBoringPaperWork 
    Container            BoringFilingCabinet
    Room                 OfficeSimulationRoom
	MinSlotId			 0
	MaxSlotId			 0
    Distribution         OutOfStock
	Properties			 HighPriority
	Worker				 Prisoner
	Worker				 SimulationOfficeManager
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             ProcessedBoringPaperWork 
    Container            BoringFilingCabinet
    Room                 OfficeSimulationRoom
	MinSlotId			 0
	MaxSlotId			 0
    Distribution         NonCompeting
	Properties			 HighPriority
	Worker				 Prisoner
	Worker				 SimulationOfficeManager
END


BEGIN ProductionRule       
    Rule                 Storage
    Material             PiledUpPaperWorkAdmin
    Container            AdminDeskUp
    Room                 Headquarters
	MinSlotId			 0
	MaxSlotId			 0
    Distribution         OutOfStock
	Condition			 NotLoaded
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PiledUpPaperWorkAdmin
    Container            AdminDeskUp
    Room                 Headquarters
	MinSlotId			 0
	MaxSlotId			 0
    Distribution         NonCompeting
	Condition			 NotLoaded
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PiledUpPaperWorkAdmin 
    Container            AdminDeskDown
    Room                 Headquarters
	MinSlotId			 1
	MaxSlotId			 1
    Distribution         NonCompeting
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             ProcessedPaperWorkAdmin
    Container            HQFilingCabinet
    Room                 Headquarters
	MinSlotId			 0
	MaxSlotId			 0
    Distribution         NonCompeting
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
END


BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterTonerSmall 
    Container            PrinterTonerSmallRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         OutOfStock
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterTonerSmall 
    Container            PrinterTonerSmallRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         NonCompeting
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterTonerLarge 
    Container            PrinterTonerLargeRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         OutOfStock
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterTonerLarge 
    Container            PrinterTonerLargeRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         NonCompeting
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterDrumkitSmall 
    Container            PrinterDrumkitSmallRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         OutOfStock
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterDrumkitSmall 
    Container            PrinterDrumkitSmallRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         NonCompeting
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterDrumkitLarge 
    Container            PrinterDrumkitLargeRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         OutOfStock
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterDrumkitLarge 
    Container            PrinterDrumkitLargeRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         NonCompeting
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterPaperSmall 
    Container            PrinterPaperSmallRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         OutOfStock
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterPaperSmall 
    Container            PrinterPaperSmallRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         NonCompeting
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterPaperLarge 
    Container            PrinterPaperLargeRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         OutOfStock
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             PrinterPaperLarge 
    Container            PrinterPaperLargeRack
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         NonCompeting
	Condition			 NotLoaded
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Worker				 SystemAdministrator
	Worker				 ComputerNerd
END



BEGIN ProductionRule       
    Rule                 Storage
    Material             ServerParts 
    Container            ServerPartsRack
	Room				 ServerRoom
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         OutOfStock
	Condition			 NotLoaded
	Worker				 SystemAdministrator
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             ServerParts 
    Container            ServerPartsRack
	Room				 ServerRoom
	MinSlotId			 3
	MaxSlotId			 3
    Distribution         NonCompeting
	Condition			 NotLoaded
	Worker				 SystemAdministrator
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             UselessDocumentsExport 
    Room                 Exports
    Distribution         Random
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             ImportantDocumentsExport 
    Room                 Exports
    Distribution         Random
END

BEGIN Processor
	Processor			 PrinterDrumkitLargeRack
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
    Worker				 SystemAdministrator
	Worker				 ComputerNerd
	Qualification		 BasicComputerSkills
END

BEGIN Processor
	Processor			 PrinterDrumkitSmallRack
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
    Worker				 SystemAdministrator
	Worker				 ComputerNerd
	Qualification		 BasicComputerSkills
END

BEGIN Processor
	Processor			 PrinterPaperLargeRack
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
    Worker				 SystemAdministrator
	Worker				 ComputerNerd
	Qualification		 BasicComputerSkills
END

BEGIN Processor
	Processor			 PrinterPaperSmallRack
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
    Worker				 SystemAdministrator
	Worker				 ComputerNerd
	Qualification		 BasicComputerSkills
END

BEGIN Processor
	Processor			 PrinterTonerLargeRack
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
    Worker				 SystemAdministrator
	Worker				 ComputerNerd
	Qualification		 BasicComputerSkills
END

BEGIN Processor
	Processor			 PrinterTonerSmallRack
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
    Worker				 SystemAdministrator
	Worker				 ComputerNerd
	Qualification		 BasicComputerSkills
END

BEGIN Processor
	Processor			 ServerPartsRack
	Input				 None
	Output				 None
	OperatingTime		 0
    Worker				 SystemAdministrator
END

BEGIN Processor
	Processor			 NetworkPrinter
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
    Worker				 SimulationOfficeManager
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
	Qualification		 BasicComputerSkills
END

BEGIN Processor
    Processor			 TableWorkPCLinkUp
	Object				 TableWorkPCLinkUp
    Input				 PiledUpBoringPaperWork
	InputCount			 1
    Output				 ProcessedBoringPaperWork
	OutputCount			 1
    OperatingTime		 5.0
	Worker				 Prisoner
	Worker				 SimulationOfficeManager
	Qualification		 BasicComputerSkills
END

BEGIN Processor
    Processor			 TableWorkPCLinkDown
	Object				 TableWorkPCLinkDown
    Input				 None
    Output				 None
    OperatingTime		 0
	Worker				 Prisoner
	Worker				 SimulationOfficeManager
	Qualification		 BasicComputerSkills
END

BEGIN Processor
    Processor			 AdminDeskUp
	Object				 AdminDeskUp
    Input				 PiledUpPaperWorkAdmin
	InputCount			 1
    Output				 ProcessedPaperWorkAdmin
	OutputCount			 1
    OperatingTime		 5.0
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
END

BEGIN Processor
    Processor			 AdminDeskDown
	Object				 AdminDeskDown
    Input				 None
    Output				 None
    OperatingTime		 0
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
END
BEGIN Processor
    Processor			 BoringFilingCabinet
	Object				 BoringFilingCabinet
    Input				 ProcessedBoringPaperWork
	InputCount			 1
    Output				 UselessDocumentsExport
	OutputCount			 1
    OperatingTime		 0.3
	Worker				 Prisoner
	Worker				 SimulationOfficeManager
	Qualification		 BasicComputerSkills
END

BEGIN Processor
    Processor			 HQFilingCabinet
	Object				 HQFilingCabinet
    Input				 ProcessedPaperWorkAdmin
	InputCount			 1
    Output				 ImportantDocumentsExport
	OutputCount			 1
    OperatingTime		 0.3
	Worker				 Chief
	Worker				 Foreman
	Worker				 Accountant
	Worker				 Lawyer
	Worker				 Psychologist
	Worker				 TeslaMaticExpert
	Worker				 ShadyTeslaDude
	Worker				 YogaMaster
	Worker				 BasketballTrainer
	Worker				 BarberChief
END

#######################################################
#
#  End Servers and more
#
#######################################################



#######################################################
#
#  Begin Solar Power Stations
#
#######################################################



#######################################################
#
#  End Solar Power Stations
#
#######################################################



#######################################################
#
#  Begin Money Laundering Mod (Easy Mode) by hoosdatGuy
#
#######################################################

BEGIN ProductionRule       
    Rule                 Storage
    Material             DirtyMoney  
    Container            MoneyTable
    Distribution         Random
	Worker               Prisoner
	Worker				 Workman
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             DirtyMoney
    Container            Table
	Room                 Accounting
    Distribution         Random
	MinSlotId			 0
    MaxSlotId            3
    Condition            NotLoaded
	Worker               Prisoner
	Worker				 Workman
END


BEGIN ProductionRule       
    Rule                 Storage
    Material             DirtyMoney
    Container            SmallTable
	Room                 Accounting
    Distribution         Random
	MinSlotId			 0
    MaxSlotId            1
    Condition            NotLoaded
	Worker               Prisoner
	Worker				 Workman
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             DirtyMoney  
    Room                 Accounting  
    Distribution         Random  
    Condition            NotLoaded
	Worker               Prisoner
	Worker				 Workman
END

BEGIN ProductionRule
	Rule                 Storage
	Material             CleanMoney
	Room                 Vault
	Container            MoneySafe
	Distribution         Random
	Worker               Prisoner
	Worker				 Workman
END

#BEGIN ProductionRule
#	Rule                 Storage
#	Material             CleanMoney
#	Room                 Exports
#	Distribution         Random
#	Worker               Prisoner
#	Worker				 Workman
#END

BEGIN Processor
    Processor            MoneyTable
    Input                DirtyMoney
    Output               CleanMoney
	Object               MoneyTable
	Worker               Prisoner
    OperatingTime        6.0
	Properties           ShowDuringOperation
END

#######################################################
#
#  End Money Laundering Mod (Easy Mode) by hoosdatGuy
#
#######################################################



#######################################################
#
#  Begin BarberMod by oskr13
#
#######################################################

BEGIN ProductionRule
	Rule				 Storage
	Material			 BlondHairStrand
	Container			 BlondBarberPress
	Room				 WigProductionRoom
	Worker				 Prisoner
	Worker				 Barber
	Distribution		 Nearest
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 BrownHairStrand
	Container			 BrownBarberPress
	Room				 WigProductionRoom
	Worker				 Prisoner
	Worker				 Barber
	Distribution		 Nearest
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 RedHairStrand
	Container			 RedBarberPress
	Room				 WigProductionRoom
	Worker				 Prisoner
	Worker				 Barber
	Distribution		 Nearest
END

BEGIN Processor
	Processor			 BlondBarberPress
	Input				 BlondHairStrand
	InputCount			 6
	Output				 WigBox
	OperatingTime		 15.0
	Object				 BlondBarberPress
	Worker				 Prisoner
	Worker				 Barber
END

BEGIN Processor
	Processor			 BrownBarberPress
	Input				 BrownHairStrand
	InputCount			 6
	Output				 WigBox
	OperatingTime		 15.0
	Object				 BrownBarberPress
	Worker				 Prisoner
	Worker				 Barber
END

BEGIN Processor
	Processor			 RedBarberPress
	Input				 RedHairStrand
	InputCount			 10
	Output				 RedWigBox
	OperatingTime		 30.0
	Object				 RedBarberPress
	Worker				 Prisoner
	Worker				 Barber
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 WigBox
	Container			 Table
	MinSlotId			 0
	MaxSlotId			 3
	Room				 WigProductionRoom
	Worker				 Prisoner
	Worker				 Barber
	Distribution		 Nearest
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 WigBox
	Container			 SmallTable
	MinSlotId			 0
	MaxSlotId			 1
	Room				 WigProductionRoom
	Worker				 Prisoner
	Worker				 Barber
	Distribution		 Nearest
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 WigBox
	Room				 Exports
	Distribution		 Random
	Worker				 Prisoner
	Worker				 Workman
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 RedWigBox
	Container			 Table
	MinSlotId			 0
	MaxSlotId			 3
	Room				 WigProductionRoom
	Distribution		 Nearest
	Worker				 Prisoner
	Worker				 Barber
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 RedWigBox
	Container			 SmallTable
	MinSlotId			 0
	MaxSlotId			 1
	Room				 WigProductionRoom
	Distribution		 Nearest
	Worker				 Prisoner
	Worker				 Barber
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 RedWigBox
	Room				 Exports
	Distribution		 Random
	Worker				 Prisoner
	Worker				 Workman
END

#######################################################
#
#  End BarberMod by oskr13
#
#######################################################



#######################################################
#
#  Begin Manufactury 4.0
#
#######################################################

# FOR COTTON PLANTATION

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonSeed
	Container			 M4_PlantationControl
	Room				 M4_CottonPlantation
	Distribution		 Nearest
	MinSlotId			 0
	MaxSlotId			 0
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 M4_PlantationControl
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonSeed
	Room				 M4_CottonPlantation
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonCompost
	Container			 M4_PlantationControl
	Room				 M4_CottonPlantation
	Distribution		 Nearest
	MinSlotId			 1
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonCompost
	Room				 M4_CottonPlantation
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonFertilizer
	Container			 M4_PlantationControl
	Room				 M4_CottonPlantation
	Distribution		 Nearest
	MinSlotId			 2
	MaxSlotId			 2
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonFertilizer
	Room				 M4_CottonPlantation
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonDDT
	Container			 M4_PlantationControl
	Room				 M4_CottonPlantation
	Distribution		 Nearest
	MinSlotId			 3
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonDDT
	Room				 M4_CottonPlantation
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END


# FOR JEANS MANUFACTURY

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_Jeans
	Container			 M4_ManufacturyTable
	MinSlotId			 3
	MaxSlotId			 4
	Room				 M4_Manufactury
	Worker				 Prisoner
	Worker				 M4_Tailor
	Distribution		 Nearest
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_Jeans
	Room				 Exports
	Distribution		 Nearest
	Worker				 Prisoner
	Worker				 M4_Tailor
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_ClothSpool
	Container			 M4_SewingStation
	Worker				 Prisoner
	Worker				 M4_Tailor
	Distribution		 NonCompeting
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_ClothSpool
	Container			 M4_SewingStation
	Worker				 Prisoner
	Worker				 M4_Tailor
	Distribution		 OutOfStock
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_ClothSpool
	Container			 M4_ManufacturyTable
	Room				 M4_Manufactury
	Worker				 Prisoner
	Worker				 M4_Tailor
	Distribution		 NonCompeting
	MinSlotId			 5
	MaxSlotId			 6
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_ClothSpool
	Room				 M4_Manufactury
	Worker				 Prisoner
	Worker				 M4_Tailor
	Distribution		 NonCompeting
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_RawCotton
	Container			 M4_TextileMill
	Worker				 Prisoner
	Worker				 M4_Tailor
	Distribution		 NonCompeting
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_RawCotton
	Container			 M4_TextileMill
	Worker				 Prisoner
	Worker				 M4_Tailor
	Distribution		 OutOfStock
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_RawCotton
	Container			 M4_PlantationTable
	Room				 M4_CottonPlantation
	Distribution		 Nearest
	MinSlotId			 3
	MaxSlotId			 6
	Condition			 NotLoaded
	Properties			 HighPriority
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_RawCotton
	Room				 M4_CottonPlantation
	Condition			 NotLoaded
	Distribution		 Nearest
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_RawCotton
	Room				 Exports
	Condition			 NotLoaded
	Distribution		 Nearest
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END


### PROCESSORS


BEGIN Processor
	Processor			 M4_ManufacturyTable
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
	Worker				 M4_Tailor
END

BEGIN Processor
	Processor			 M4_PlantationTable
	Input				 None
	Output				 None
	OperatingTime		 0
	Worker				 Prisoner
	Worker				 Tailor
	Worker				 M4_PlantationWorker
END

BEGIN Processor
	Processor			 M4_SewingStation
	Input				 M4_ClothSpool
	InputCount			 1
	Output				 M4_Jeans
	OutputCount			 3
	OperatingTime		 15.0
	Object				 M4_SewingStation
	Worker				 M4_Tailor
	Worker				 Prisoner
END

BEGIN Processor
	Processor			 M4_TextileMill
	Input				 M4_RawCotton
	InputCount			 1
	Output				 M4_ClothSpool
	OutputCount			 1
	OperatingTime		 9.0
	Object				 M4_TextileMill
	Worker				 M4_Tailor
	Worker				 Prisoner
END


# store R4_SuperCompost from Recycling 4.0 if available

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_SuperCompost
	Container			 M4_PlantationControl
	Distribution		 OutOfStock
	MinSlotId			 4
	MaxSlotId			 4
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 R4_SuperCompost
	Container			 M4_PlantationControl
	Distribution		 NonCompeting
	MinSlotId			 4
	MaxSlotId			 4
	Worker				 Prisoner
	Worker				 M4_PlantationWorker
END

# Store pruned/dead/struck plants in R4_RecycleBin from Recycling 4.0 if available

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonPrunedPlant
	Container			 R4_RecycleBin
	MinSlotId			 0
	MaxSlotId			 7
	Distribution		 Nearest
    Properties           HighPriority
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonDeadPlant
	Container			 R4_RecycleBin
	MinSlotId			 0
	MaxSlotId			 7
	Distribution		 Nearest
    Properties           HighPriority
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 M4_PlantationWorker
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 M4_CottonPlantStruck
	Container			 R4_RecycleBin
	MinSlotId			 0
	MaxSlotId			 7
	Distribution		 Nearest
    Properties           HighPriority
	Condition			 NotLoaded
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Janitor
	Worker				 Gardener
	Worker				 M4_PlantationWorker
END

#######################################################
#
#  End Manufactury 4.0
#
#######################################################



#######################################################
#
# Default game production rules with SmallTable added
#
######################################################

BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTray
	Container			 ServingTable
	Distribution		 Linked
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTray
	Container			 ServingTable
	Distribution		 OutOfStock
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTray
	Container			 ServingTable
	Distribution		 Nearest
	Condition			 NotInFoodSystem
    Properties           HighPriority
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             FoodTray  
    Container            SmallServingTable  
    Distribution         Linked  
    Properties           HighPriority
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             FoodTray  
    Container            SmallServingTable  
    Distribution         OutOfStock  
    Properties           HighPriority
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             FoodTray  
    Container            SmallServingTable  
    Distribution         Nearest
    Condition            NotInFoodSystem  
    Properties           HighPriority
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             FoodTray  
    Container            TrayDispenser
    Distribution         Linked 
    MaxSlotId            4
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             FoodTray  
    Container            TrayDispenser
    Distribution         OutOfStock  
    MaxSlotId            4
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             FoodTray  
    Container            TrayDispenser  
    Distribution         Nearest
    Condition            NotInFoodSystem  
    MaxSlotId            4
END


BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTrayDirty
	Container			 Sink
	Distribution		 Linked
	Condition			 NotDuringMealService
	StackInRoom			 Canteen
    StackInRoom          Staffroom
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTrayDirty
	Container			 SmallSink
	Distribution		 Linked
	Condition			 NotDuringMealService
	StackInRoom			 Canteen
    StackInRoom          Staffroom
	MaxSlotId			 0
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTrayDirty
	Container			 SmallWoodenSink
	Distribution		 Linked
	Condition			 NotDuringMealService
	StackInRoom			 Canteen
    StackInRoom          Staffroom
	MaxSlotId			 0
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTrayDirty
	Container			 Table
	Room				 Canteen
	Distribution		 Nearest
	Condition			 NotInFoodSystem
	StackInRoom			 Canteen
    StackInRoom          Staffroom
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTrayDirty
	Room				 Canteen
	Container			 Table
	Distribution		 Linked
	Condition			 NotInKitchenOrCanteen
	StackInRoom			 Canteen
    StackInRoom          Staffroom
	MinSlotId			 0
	MaxSlotId			 3
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTrayDirty
	Container			 SmallTable
	Room				 Canteen
	Distribution		 Nearest
	Condition			 NotInFoodSystem
	StackInRoom			 Canteen
    StackInRoom          Staffroom
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 FoodTrayDirty
	Room				 Canteen
	Container			 SmallTable
	Distribution		 Linked
	Condition			 NotInKitchenOrCanteen
	StackInRoom			 Canteen
    StackInRoom          Staffroom
	MinSlotId			 0
	MaxSlotId			 1
    Properties           HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PrisonerUniform
	Container			 Table
	Room				 Intake
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 UniformsInIntake
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PrisonerUniform
	Container			 SmallTable
	Room				 Intake
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 UniformsInIntake
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PrisonerUniform
	Container			 Table
	Room				 Laundry
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 UniformsRequireMoving
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PrisonerUniform
	Container			 SmallTable
	Room				 Laundry
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 UniformsRequireMoving
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PrisonerUniform
	Room				 Laundry
	Distribution		 NonCompeting
	Condition			 UniformsRequireMoving
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PrisonerUniform
	Container			 Table
	Room				 Intake
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 UniformsRequireMovingToIntake
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PrisonerUniform
	Container			 SmallTable
	Room				 Intake
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 UniformsRequireMovingToIntake
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 DirtyPrisonerUniform
	Room				 Laundry
	Distribution		 NonCompeting
	Condition			 UniformsNotTargetted
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 DirtyPrisonerUniform
	Container			 LaundryMachine
	Room				 Laundry
	Distribution		 NonCompeting
	Condition			 UniformsInLaundry
	MaxSlotId			 0
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 DirtyPrisonerUniform
	Container			 LaundryBasket
	Distribution		 Nearest
	Condition			 NotLoadedIsStack
	MaxSlotId			 0
END

######################################################
# Log

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 WoodSaw
	Room				 WoodWorkshop
	Distribution		 Nearest
	Properties			 HighPriority
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 WorkshopSaw
	Room				 Workshop
	Distribution		 NonCompeting
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 WoodSaw
	Room				 WoodWorkshop
	Distribution		 OutOfStock
	Properties			 HighPriority
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 WorkshopSaw
	Room				 Workshop
	Distribution		 OutOfStock
	Worker				 ForestryWorker
	Worker               Prisoner
END

#start loading this fake processor at Slot1, not Slot0 so it will never actually create an Operate job
BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 LogStorageRack
	Room				 WoodWorkshop
	Distribution		 NonCompeting
	MinSlotId			 1
	MaxSlotId			 7
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 LogStorageRack
	Room				 WoodWorkshop
	Distribution		 OutOfStock
	MinSlotId			 1
	MaxSlotId			 7
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 LogStorageRack
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 1
	MaxSlotId			 7
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 LogStorageRack
	Room				 Workshop
	Distribution		 OutOfStock
	MinSlotId			 1
	MaxSlotId			 7
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 LogStorageRack
	Room				 PrisonForestry
	Distribution		 NonCompeting
	MinSlotId			 1
	MaxSlotId			 7
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 LogStorageRack
	Room				 PrisonForestry
	Distribution		 OutOfStock
	MinSlotId			 1
	MaxSlotId			 7
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 Table
	Room				 WoodWorkshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 Table
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 SmallTable
	Room				 WoodWorkshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 SmallTable
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 OakTable
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Room				 WoodWorkshop
	Distribution		 NonCompeting
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Room				 Workshop
	Distribution		 NonCompeting
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Room				 PrisonForestry
	Distribution		 NonCompeting
	Condition			 NotLoaded
	Worker				 ForestryWorker
	Worker               Prisoner
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             Log  
    Room                 Storage  
    Distribution         NonCompeting  
    Condition            NotLoaded  
END

#BEGIN ProductionRule
#	Rule				 Storage
#	Material			 Log
#	Room				 Exports
#	Condition			 NotLoaded
#	Distribution		 Nearest
#	Worker				 Prisoner
#	Worker				 ForestryWorker
#END

######################################################
# Wood

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 CoffinTable
	Room				 CoffinWorkshop
	Distribution		 NonCompeting
	Properties			 HighPriority
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 CoffinTable
	Room				 CoffinWorkshop
	Distribution		 OutOfStock
	Properties			 HighPriority
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 CarpenterTable
	Room				 Workshop
	Distribution		 NonCompeting
	Properties			 HighPriority
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 CarpenterTable
	Room				 Workshop
	Distribution		 OutOfStock
	Properties			 HighPriority
	Worker				 Workman
	Worker               Prisoner
END

#start loading this fake processor at Slot1, not Slot0 so it will never actually create an Operate job
BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 WoodStorageRack
	Room				 WoodWorkshop
	Distribution		 NonCompeting
	MinSlotId			 1
	MaxSlotId			 7
	Worker				 ForestryWorker
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 WoodStorageRack
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 1
	MaxSlotId			 7
	Worker				 ForestryWorker
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 Table
	Room				 WoodWorkshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 SmallTable
	Room				 WoodWorkshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 R4_GardenTable
	Room				 WoodWorkshop
	Distribution		 NonCompeting
	MinSlotId			 4
	MaxSlotId			 5
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 Table
	Room				 CoffinWorkshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 SmallTable
	Room				 CoffinWorkshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 Table
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 SmallTable
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Container			 OakTable
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Room				 WoodWorkshop
	Distribution		 NonCompeting
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Room				 CoffinWorkshop
	Distribution		 NonCompeting
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Wood
	Room				 Workshop
	Distribution		 NonCompeting
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

# define dummy processors so modded staff know they can put stuff in here and operate it when required
BEGIN Processor
    Processor            LogStorageRack
    Input                Log
    InputCount           3
    OutputCount          3
    Output               Log
    OperatingTime        0
    Properties           ShowDuringOperation
	Worker				 ForestryWorker
    Worker               Prisoner
END

BEGIN Processor
    Processor            WoodStorageRack
    Input                Wood
    InputCount           3
    OutputCount          3
    Output               Wood
    OperatingTime        0
    Properties           ShowDuringOperation
	Worker				 ForestryWorker
    Worker               Prisoner
END

# Forestry worker may cut logs into wood and store it at WoodStorageRacks
# He can now carry stacks of Log from PrisonForestry, to fake processor LogStorageRack, to processor WoodSaw...
# ...and carry the stack of Wood from WoodSaw to WoodStorageRack.
# We could also add him to a CarpenterTable so he would store Wood on that as well, but then he would start making beds, which we don't want.
# That's why he isn't added to the CoffinTable as well.
BEGIN Processor
    Processor            WoodSaw
    Input                Log
    InputCount           1
    Output               Wood
    OutputCount          4
    OperatingTime        8.0
	Object				 WoodSaw
	Properties           ShowDuringOperation
	Worker				 ForestryWorker
    Worker               Prisoner
END

BEGIN Processor
    Processor            CoffinTable
    Input                Wood
	InputCount			 6
	OutputCount			 1
    Output               GraveCoffin
	Object               CoffinTable
    BEGIN AlternateOutput
        Type             GraveCoffin 
        Count            1
        Chance           1
    END
    OperatingTime        60.0
	Properties           ShowDuringOperation
	Worker               Prisoner
END

######################################################
# SheetMetal

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetMetal
	Container			 WorkshopSaw
	Room				 Workshop
	Distribution		 NonCompeting
	Properties			 HighPriority
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetMetal
	Container			 WorkshopSaw
	Room				 Workshop
	Distribution		 OutOfStock
	Properties			 HighPriority
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetMetal
	Container			 MetalStorageRack
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 1
	MaxSlotId			 4
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetMetal
	Container			 Table
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetMetal
	Container			 SmallTable
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetMetal
	Container			 OakTable
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SheetMetal
	Room				 Workshop
	Distribution		 NonCompeting
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

######################################################
# LicensePlate

BEGIN ProductionRule
	Rule				 Storage
	Material			 LicensePlateBlank
	Container			 WorkshopPress
	Distribution		 NonCompeting
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LicensePlateBlank
	Container			 MetalStorageRack
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 5
	MaxSlotId			 7
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LicensePlate
	Container			 Table
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LicensePlate
	Container			 SmallTable
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LicensePlate
	Container			 OakTable
	Room				 Workshop
	Distribution		 NonCompeting
	MinSlotId			 0
	MaxSlotId			 3
	Condition			 NotLoaded
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LicensePlate
	Room				 Exports
	Distribution		 Random
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Entity
	Container			 PrisonerBus
	Distribution		 Random
	MaxSlotId			 8
	Condition			 DeathRowTransfer
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Entity
	Container			 MedicalBed
	Room				 MedicalWard
	Distribution		 Nearest
	Properties			 HighPriority
	Condition			 EntitySeriouslyInjured
END

BEGIN ProductionRule
	Rule				 Entity
	Container			 MedicalBedLarge
	Room				 MedicalWard
	Distribution		 Nearest
	Properties			 HighPriority
	Condition			 EntitySeriouslyInjured
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LibraryBookUnsorted
	Room				 Library
	Distribution		 Random
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LibraryBookUnsorted
	Container			 SortingTable
	Room				 Library
	Distribution		 Random
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 LibraryBookSorted
	Container			 LibraryBookshelf
	Room				 Library
	Distribution		 Random
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 IngredientsCooking
	Container			 Cooker
	Room				 Kitchen
	Distribution		 Nearest
	Condition			 NotLoaded
	MinSlotId			 0
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailUnsorted
	Container			 SortingTable
	Room				 MailRoom
	Distribution		 Random
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailUnsorted
	Container			 Table
	Room				 MailRoom
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 3
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailUnsorted
	Container			 SmallTable
	Room				 MailRoom
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailUnsorted
	Container			 OakTable
	Room				 MailRoom
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 3
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailSorted
	Container			 MailSatchel
	Room				 MailRoom
	Distribution		 Random
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailSatchel
	Container			 Table
	Room				 MailRoom
	Distribution		 OutOfStock
	MinSlotId			 0
	MaxSlotId			 3
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailSatchel
	Container			 SmallTable
	Room				 MailRoom
	Distribution		 OutOfStock
	MinSlotId			 0
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailSatchel
	Container			 OakTable
	Room				 MailRoom
	Distribution		 OutOfStock
	MinSlotId			 0
	MaxSlotId			 3
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailSatchel
	Room				 MailRoom
	Distribution		 OutOfStock
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailSatchel
	Container			 Table
	Room				 MailRoom
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 3
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailSatchel
	Container			 SmallTable
	Room				 MailRoom
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailSatchel
	Container			 OakTable
	Room				 MailRoom
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 3
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 MailSatchel
	Room				 MailRoom
	Distribution		 Random
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 ShopGoods
	Room				 Shop
	Container			 ShopShelf
	Distribution		 NonCompeting
	Condition			 InRoom
	MinSlotId			 0
	MaxSlotId			 2
	Properties			 LoadObject
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 ShopGoods
	Room				 Shop
	Container			 Table
	Distribution		 Random
	Condition			 NotLoaded
	MinSlotId			 0
	MaxSlotId			 3
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 ShopGoods
	Room				 Shop
	Container			 SmallTable
	Distribution		 Random
	Condition			 NotLoaded
	MinSlotId			 0
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 ShopGoods
	Room				 Shop
	Container			 OakTable
	Distribution		 Random
	Condition			 NotLoaded
	MinSlotId			 0
	MaxSlotId			 3
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 ShopGoods
	Room				 Shop
	Distribution		 Random
	Condition			 NotLoaded
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             Newspaper
    Container            Table  
    Room                 Staffroom
    Distribution         Random  
    MinSlotId            0  
    MaxSlotId            3
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             Newspaper
    Container            SmallTable  
    Room                 Staffroom
    Distribution         Random  
    MinSlotId            0  
    MaxSlotId            1
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             Newspaper
    Container            OakTable  
    Room                 Staffroom
    Distribution         Random  
    MinSlotId            0  
    MaxSlotId            3
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             Newspaper
    Room                 Staffroom
    Distribution         Random  
END

BEGIN Processor
	Processor			 SmallSink
	Input				 FoodTrayDirty
	Output				 FoodTray
	OperatingTime		 4.0
	Object				 SmallSink
	Tool				 CleaningBrush
	Properties			 ShowDuringOperation
	Worker				 Cook
	Worker				 Prisoner
END

BEGIN Processor
	Processor			 SmallWoodenSink
	Input				 FoodTrayDirty
	Output				 FoodTray
	OperatingTime		 4.0
	Object				 SmallWoodenSink
	Tool				 CleaningBrush
	Properties			 ShowDuringOperation
	Worker				 Cook
	Worker				 Prisoner
END

BEGIN Processor
    Processor            SortingTable
    Input                LibraryBookUnsorted
    Output               LibraryBookSorted
    OperatingTime        15.0
    Worker               Prisoner
    BEGIN AlternateOutput
        Type             RuinedBook 
        Count            1
        Chance           0.1
    END
END



#######################################################
#
#  Begin Vending Machines 2.0
#
#######################################################

BEGIN ProductionRule       
    Rule                 Storage
    Material             StaffFoodBoxed
    Container            ServingTable  
    Distribution         Random  
    MinSlotId            1  
    MaxSlotId            4
    ContainerCondition   StaffOnly
    Properties           HighPriority
	Worker				 VendingManager
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             StaffFoodBoxed
    Container            SmallServingTable  
    Distribution         Random  
    MinSlotId            1  
    MaxSlotId            2
    ContainerCondition   StaffOnly
    Properties           HighPriority
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 StaffFoodBoxed
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 StaffFoodBoxed
	Room				 VendingStorageRoom
	Condition			 NotLoaded
	Distribution		 NonCompeting
	Worker				 VendingManager
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             StaffFood
    Container            ServingTable  
    Distribution         Random  
    MinSlotId            1  
    MaxSlotId            4
    ContainerCondition   StaffOnly
    Properties           HighPriority
	Worker				 VendingManager
END

BEGIN ProductionRule       
    Rule                 Storage
    Material             StaffFood
    Container            SmallServingTable  
    Distribution         Random  
    MinSlotId            1  
    MaxSlotId            2
    ContainerCondition   StaffOnly
    Properties           HighPriority
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 StaffFood
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 StaffFood
	Room				 VendingStorageRoom
	Condition			 NotLoaded
	Distribution		 NonCompeting
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackWaterCooler
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	MinSlotId			 3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackWaterCooler
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackOrangeJuice
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	MinSlotId			 0
	MaxSlotId			 2
	Condition			 NotLoadedIsStack
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackOrangeJuice
	Room				 VendingStorageRoom
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingOrange
	Container			 VendingOrangeJuicer
	Distribution		 NonCompeting
	Worker				 Gardener
	Worker				 Cook
	Worker				 Workman
	Worker               Prisoner
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingOrange
	Container			 VendingOrangeJuicer
	Distribution		 OutOfStock
	Worker				 Gardener
	Worker				 Cook
	Worker				 Workman
	Worker               Prisoner
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingOrange
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
	Properties			 HighPriority
	Condition			 NotLoaded
	MinSlotId			 0
	MaxSlotId			 2
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Gardener
	Worker				 VendingManager
END

#BEGIN ProductionRule
#	Rule				 Storage
#	Material			 VendingOrange
#	Room				 Exports
#	Condition			 NotLoaded
#	Distribution		 Random
#	Worker				 Prisoner
#	Worker				 Workman
#	Worker				 Gardener
#	Worker				 VendingManager
#END

#BEGIN ProductionRule
#	Rule				 Storage
#	Material			 VendingApple
#	Room				 Exports
#	Condition			 NotLoaded
#	Distribution		 Random
#	Worker				 Prisoner
#	Worker				 Workman
#	Worker				 Gardener
#	Worker				 VendingManager
#END

#BEGIN ProductionRule
#	Rule				 Storage
#	Material			 VendingCherry
#	Room				 Exports
#	Condition			 NotLoaded
#	Distribution		 Random
#	Worker				 Prisoner
#	Worker				 Workman
#	Worker				 Gardener
#	Worker				 VendingManager
#END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackWater
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackWater
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackSoup
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackSoup
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackFruit
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackFruit
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackSnack
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackSnack
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackBurger
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	MinSlotId			 3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackBurger
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackCoffee
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackCoffee
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackSandwich
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackSandwich
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackShop
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackShop
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackMedicine
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackMedicine
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackNews
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackNews
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	Worker				 VendingManager
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackPrisonerUniform
	Container			 VendingStorageRack
	Room				 Laundry
	Distribution		 Random
    MinSlotId            0
	MaxSlotId			 7
	Worker				 Janitor
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackPrisonerUniform
	Container			 Table
	Room				 Laundry
	Distribution		 Random
    MinSlotId            0
	MaxSlotId			 1
	Condition			 NotLoaded
	Worker				 Janitor
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackPrisonerUniform
	Container			 SmallTable
	Room				 Laundry
	Distribution		 Random
    MinSlotId            4
	MaxSlotId			 5
	Condition			 NotLoaded
	Worker				 Janitor
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingStackPrisonerUniform
	Room				 Laundry
	Condition			 NotLoaded
	Worker				 Janitor
	Worker				 VendingManager
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingEarnings
	Room				 Exports
	Distribution		 Random
	Worker				 VendingManager
END

BEGIN Processor
	Processor			 VendingOrangeJuicer
	Object				 VendingOrangeJuicer
	Input				 VendingOrange
	Output				 VendingStackOrangeJuice
	InputCount			 10
	OutputCount			 1
    BEGIN AlternateOutput
        Type             VendingTreeFruitRottenOrange 
        Count            12
        Chance           0.1
    END
	OperatingTime		 6
	Properties			 ShowDuringOperation
	Worker				 Cook
	Worker				 Workman
	Worker				 Prisoner
	Worker				 VendingManager
END

#######################################################
#
#  End Vending Machines 2.0
#
#######################################################
