
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			 SmallTable
	MinSlotId			 4
	MaxSlotId			 5
	Room				 Kitchen
	Distribution		 Kitchens
	Condition			 NotLoaded
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Ingredients
	Container			 VendingStorageRack
	Room				 VendingStorageRoom
	Distribution		 Random
	Condition			 NotLoaded
	MinSlotId			 0
	MaxSlotId			 2
	Worker				 VendingManager
END

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

BEGIN ProductionRule
	Rule				 Storage
	Material			 Ingredients
	Room				 Kitchen
	Distribution		 Random
	Condition			 NotLoaded
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			 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			 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
	AlternateOutput		 VendingTreeFruitRottenOrange
	AlternateOutputChance 0.1
	AlternateOutputCount  12
	OperatingTime		 6
	Properties			 ShowDuringOperation
	Worker				 Cook
	Worker				 Workman
	Worker				 Prisoner
	Worker				 VendingManager
END

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


#######################################################
#
#  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
#
#######################################################
