BEGIN ProductionRule
	Rule				 Entity
	Container			 coffin
	Room				 CoffinRoom
	Distribution		 Random
	MinSlotId			 0
	MaxSlotId			 0
	Condition			 EntityDead
	Properties			 HighPriority
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 loadedcoffin
	Container			 cremator
	MinSlotId			 0
	MaxSlotId			 0
	Condition			 NotLoaded
	Distribution		 Nearest
	WorkGroup			 Cremation
	Worker				 Prisoner
    Worker				 Workman
	Properties			 HighPriority
END


BEGIN ProductionRule
	Rule				 Storage
	Material			 needprocessurn
	Container			 Table
	MinSlotId			 0
	MaxSlotId			 3
	Room				 Crematorium
	Distribution		 Random
	Condition			 NotLoaded
	WorkGroup			 Cremation
    Worker				 Workman
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 urn
	Container			 Table
	MinSlotId			 0
	MaxSlotId			 3
	Room				 Crematorium
	Distribution		 Random
	Condition			 NotLoaded
	WorkGroup			 Cremation
    Worker				 Workman
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 coffin
	Container			 CoffinTable
	MinSlotId			 0
	MaxSlotId			 3
	Room				 CoffinRoom
	Distribution		 Random
	Condition			 NotLoaded
	WorkGroup			 Cremation
    Worker				 Workman
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 woodrouter
	Distribution		 NonCompeting
	WorkGroup			 Cremation
	Worker				 Prisoner
    Worker				 Workman
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 woodrouter
	Distribution		 OutOfStock
	WorkGroup			 Cremation
	Worker				 Prisoner
    Worker				 Workman
END

BEGIN ProductionRule
	Rule				 Storage
	Material			 Log
	Container			 CoffinTable
	Room				 CoffinRoom
	Distribution		 NonCompeting
	Condition			 NotLoaded
	MaxSlotId			 3
	WorkGroup			 Cremation
    Worker				 Workman
END

BEGIN Processor
    Processor            woodrouter
    Input                Log
	InputCount			 3
	OutputCount			 1
    Output               coffin
	Object               woodrouter
    AlternateOutput      coffin
    AlternateOutputCount 1
    AlternateOutputChance 1
    OperatingTime        60.0
	Properties           ShowDuringOperation
	WorkGroup			 Cremation
	Worker				 Workman
END


