forked from cacklingfiend/lignumis
		
	Have a separate recipe for steam science that only uses steam as fuel for the steam assembler
This commit is contained in:
		
							parent
							
								
									6b7cb0a2f3
								
							
						
					
					
						commit
						59fda1cb7c
					
				
					 2 changed files with 26 additions and 2 deletions
				
			
		|  | @ -20,7 +20,7 @@ assembling_machine.crafting_categories = { | ||||||
|     "basic-crafting", |     "basic-crafting", | ||||||
|     "organic-or-assembling", |     "organic-or-assembling", | ||||||
|     "wood-processing-or-assembling", |     "wood-processing-or-assembling", | ||||||
|     "crafting-with-fluid" |     "crafting-with-steam" | ||||||
| } | } | ||||||
| assembling_machine.crafting_speed = 0.5 | assembling_machine.crafting_speed = 0.5 | ||||||
| assembling_machine.energy_usage = "25kW" | assembling_machine.energy_usage = "25kW" | ||||||
|  | @ -56,6 +56,10 @@ remnants.animation[3].filename = gfx .. "steam-assembling-machine-remnants.png" | ||||||
| remnants.order = "1[steam-assembling-machine]" | remnants.order = "1[steam-assembling-machine]" | ||||||
| 
 | 
 | ||||||
| data:extend({ | data:extend({ | ||||||
|  |     { | ||||||
|  |         type = "recipe-category", | ||||||
|  |         name = "crafting-with-steam" | ||||||
|  |     }, | ||||||
|     assembling_machine, |     assembling_machine, | ||||||
|     remnants, |     remnants, | ||||||
|     { |     { | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| local item_tints = require("__base__.prototypes.item-tints") | local item_tints = require("__base__.prototypes.item-tints") | ||||||
| local item_sounds = require("__base__.prototypes.item_sounds") | local item_sounds = require("__base__.prototypes.item_sounds") | ||||||
|  | local Technology = require("__cf-lib__/data/Technology") | ||||||
| 
 | 
 | ||||||
| data:extend({ | data:extend({ | ||||||
|     { |     { | ||||||
|  | @ -25,12 +26,29 @@ data:extend({ | ||||||
|     { |     { | ||||||
|         type = "recipe", |         type = "recipe", | ||||||
|         name = "steam-science-pack", |         name = "steam-science-pack", | ||||||
|  |         category = "crafting-with-steam", | ||||||
|  |         enabled = false, | ||||||
|  |         energy_required = 20, | ||||||
|  |         ingredients = { | ||||||
|  |             { type = "item",  name = "gold-plate", amount = 2 } | ||||||
|  |         }, | ||||||
|  |         results = { { type = "item", name = "steam-science-pack", amount = 2 } }, | ||||||
|  |         crafting_machine_tint = { | ||||||
|  |             primary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, | ||||||
|  |             secondary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 }, | ||||||
|  |         }, | ||||||
|  |         allow_productivity = true | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         type = "recipe", | ||||||
|  |         name = "steam-science-pack-steam", | ||||||
|  |         localised_name = { "item-name.steam-science-pack" }, | ||||||
|         category = "crafting-with-fluid", |         category = "crafting-with-fluid", | ||||||
|         enabled = false, |         enabled = false, | ||||||
|         energy_required = 20, |         energy_required = 20, | ||||||
|         ingredients = { |         ingredients = { | ||||||
|             { type = "item",  name = "gold-plate", amount = 2 }, |             { type = "item",  name = "gold-plate", amount = 2 }, | ||||||
|             { type = "fluid", name = "steam",      amount = 10 } |             { type = "fluid", name = "steam",      amount = 20 } | ||||||
|         }, |         }, | ||||||
|         results = { { type = "item", name = "steam-science-pack", amount = 2 } }, |         results = { { type = "item", name = "steam-science-pack", amount = 2 } }, | ||||||
|         crafting_machine_tint = { |         crafting_machine_tint = { | ||||||
|  | @ -59,3 +77,5 @@ data:extend({ | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| }) | }) | ||||||
|  | 
 | ||||||
|  | Technology:new("automation-2"):addRecipe("steam-science-pack-steam") | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann