
BEGIN ProductionRule
	Rule				 Storage
	Material			 Ingredients
	Container			 Fridge
	Room				 Kitchen
	Distribution		 Kitchens
	MinSlotId			 0
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Ingredients
	Container			 Fridge
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Ingredients
	Container			 Table
	MinSlotId			 0
	MaxSlotId			 3
	Room				 Kitchen
	Distribution		 Kitchens
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Ingredients
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	MinSlotId			 1
	MaxSlotId			 2
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Ingredients
	Room				 ColdStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Ingredients
	Room				 Kitchen
	Distribution		 Random
	Condition			 NotLoaded
END

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

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

BEGIN ProductionRule
	Rule				 Storage
	Material			 StaffFoodBoxed
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 StaffFoodBoxed
	Room				 ColdStorageRoom
	Condition			 NotLoaded
	Distribution		 NonCompeting
END

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

BEGIN ProductionRule
	Rule				 Storage
	Material			 StaffFood
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 StaffFood
	Room				 ColdStorageRoom
	Condition			 NotLoaded
	Distribution		 NonCompeting
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 WaterBottle
	Container			 WaterCooler
	Distribution		 Random
	MinSlotId			 2
	MaxSlotId			 2
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 WaterBottle
	Container			 StorageRack
	Room				 ColdStorageRoom
	MinSlotId			 0
	MaxSlotId			 0
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PaperCup
	Container			 WaterCooler
	Distribution		 Random
	MinSlotId			 1
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 PaperCup
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
	MinSlotId			 1
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Orange
	Container			 OrangeJuicer
	Distribution		 NonCompeting
	Worker				 Gardener
	Worker				 Cook
	Worker				 Workman
	Worker               Prisoner
	
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Orange
	Container			 OrangeJuicer
	Distribution		 OutOfStock
	Worker				 Gardener
	Worker				 Cook
	Worker				 Workman
	Worker               Prisoner
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Orange
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
	Properties			 HighPriority
	Condition			 NotLoaded
	MinSlotId			 3
	MaxSlotId			 7
	Worker				 Prisoner
	Worker				 Workman
	Worker				 Gardener
END

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

BEGIN ProductionRule
	Rule				 Storage
	Material			 OrangeJuice
	Container			 JuiceTable
	Distribution		 Random
    MinSlotId            1
	MaxSlotId			 1
	Worker				 Cook
	Worker				 Workman
	Worker               Prisoner
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 OrangeJuice
	Container			 StorageRack
	Room				 ColdStorageRoom
	MinSlotId			 2
	MaxSlotId			 2
	Condition			 NotLoadedIsStack
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 WaterBottleEmpty
	Room				 Exports
	Distribution		 Random
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingWater
	Container			 WaterVendingMachine
	Distribution		 Random
    MinSlotId            1
	MaxSlotId			 1
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingFruit
	Container			 FruitVendingMachine
	Distribution		 Random
    MinSlotId            1
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingSnack
	Container			 SnackVendingMachine
	Distribution		 Random
    MinSlotId            1
	MaxSlotId			 1
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingSandwich
	Container			 SandwichVendingMachine
	Distribution		 Random
    MinSlotId            1
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingCoffee
	Container			 CoffeeVendingMachine
	Distribution		 Random
    MinSlotId            1
	MaxSlotId			 1
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingWater
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingFruit
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingSnack
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingCoffee
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingSandwich
	Container			 StorageRack
	Room				 ColdStorageRoom
	Distribution		 Random
    MinSlotId            3
	MaxSlotId			 7
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingWater
	Room				 ColdStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingFruit
	Room				 ColdStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingSnack
	Room				 ColdStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
END 

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingSandwich
	Room				 ColdStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingCoffee
	Room				 ColdStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 OrangeJuice
	Room				 ColdStorageRoom
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 VendingEarnings
	Room				 Exports
	Distribution		 Random
END

BEGIN Processor
	Processor			 OrangeJuicer
	Object				 OrangeJuicer
	Input				 Orange
	Output				 OrangeJuice
	InputCount			 12
	OutputCount			 12
	AlternateOutput		 RottenOrangeTreeFruit
	AlternateOutputChance 0.1
	AlternateOutputCount  12
	OperatingTime		 6
	Properties			 ShowDuringOperation
	Worker				 Cook
	Worker				 Workman
	Worker				 Prisoner
END

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