
BEGIN Processor
    Processor            SortingTable
    Input                MailUnsorted
    Output               MailSorted
    OperatingTime        5.0
    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			 SmallGardenTable
	MaxSlotId			 1
	Room				 Recycling
    StackInRoom          Recycling
	Distribution		 NonCompeting
	Properties			 HighPriority
    Worker				 Workman
    Worker				 Guard
    Worker				 Janitor
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 SeizedSmartPhone
	Container			 SmallTable
	MaxSlotId			 1
	Room				 Recycling
    StackInRoom          Recycling
	Distribution		 NonCompeting
	Properties			 HighPriority
    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
    AlternateOutput      FaultySmartPhone
    AlternateOutputCount 1
    AlternateOutputChance 0.025
	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
