forked from cacklingfiend/lignumis
		
	Forbid lumber mill in space
This commit is contained in:
		
							parent
							
								
									93329a853e
								
							
						
					
					
						commit
						31872fef53
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		|  | @ -13,6 +13,8 @@ data:extend({ | ||||||
| 
 | 
 | ||||||
| table.insert(data.raw["character"]["character"].crafting_categories, "wood-processing-or-assembling") | table.insert(data.raw["character"]["character"].crafting_categories, "wood-processing-or-assembling") | ||||||
| 
 | 
 | ||||||
|  | local has_oxygen = data.raw["surface-property"]["oxygen"] ~= nil | ||||||
|  | 
 | ||||||
| LumberMill.EntityBuilder:new() | LumberMill.EntityBuilder:new() | ||||||
|     :burnerEnergySource({ emissions_per_minute = { noise = 100 } }) |     :burnerEnergySource({ emissions_per_minute = { noise = 100 } }) | ||||||
|     :baseProductivity(0.5) |     :baseProductivity(0.5) | ||||||
|  | @ -20,6 +22,16 @@ LumberMill.EntityBuilder:new() | ||||||
|         crafting_categories = { "wood-processing-or-assembling" }, |         crafting_categories = { "wood-processing-or-assembling" }, | ||||||
|         crafting_speed = 2, |         crafting_speed = 2, | ||||||
|         energy_usage = "1000kW", |         energy_usage = "1000kW", | ||||||
|  |         surface_conditions = { | ||||||
|  |             { | ||||||
|  |               property = has_oxygen and "oxygen" or "pressure", | ||||||
|  |               min = 10 | ||||||
|  |             }, | ||||||
|  |             { | ||||||
|  |               property = "gravity", | ||||||
|  |               min = 1 | ||||||
|  |             } | ||||||
|  |           } | ||||||
|     }) |     }) | ||||||
| 
 | 
 | ||||||
| local lumber_mill_item = LumberMill.ItemBuilder:new() | local lumber_mill_item = LumberMill.ItemBuilder:new() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann