forked from cacklingfiend/lignumis
		
	Crushing Industry: Molten gold is made from crushed gold
Crushing gold returns moist stromatolite remnant instead of sand
This commit is contained in:
		
							parent
							
								
									3075523b3f
								
							
						
					
					
						commit
						bf2a844eeb
					
				
					 1 changed files with 11 additions and 7 deletions
				
			
		|  | @ -1,5 +1,4 @@ | ||||||
| local item_sounds = require("__base__.prototypes.item_sounds") | local item_sounds = require("__base__.prototypes.item_sounds") | ||||||
| local Technology = require("__cf-lib__/data/Technology") |  | ||||||
| local Recipe = require("__cf-lib__/data/Recipe") | local Recipe = require("__cf-lib__/data/Recipe") | ||||||
| 
 | 
 | ||||||
| if not mods["crushing-industry"] then return end | if not mods["crushing-industry"] then return end | ||||||
|  | @ -11,8 +10,8 @@ data:extend({ | ||||||
|         name = "crushed-gold-ore", |         name = "crushed-gold-ore", | ||||||
|         icon = Lignumis.graphics .. "icons/crushed-gold-ore.png", |         icon = Lignumis.graphics .. "icons/crushed-gold-ore.png", | ||||||
|         pictures = { |         pictures = { | ||||||
|             { size = 64, filename = Lignumis.graphics .. "icons/crushed-gold-ore.png",    scale = 0.5, mipmap_count = 4 }, |             { size = 64, filename = Lignumis.graphics .. "icons/crushed-gold-ore.png",   scale = 0.5, mipmap_count = 4 }, | ||||||
|             { size = 64, filename = Lignumis.graphics .. "icons/crushed-gold-ore-1.png",  scale = 0.5, mipmap_count = 4 }, |             { size = 64, filename = Lignumis.graphics .. "icons/crushed-gold-ore-1.png", scale = 0.5, mipmap_count = 4 }, | ||||||
|             { size = 64, filename = Lignumis.graphics .. "icons/crushed-gold-ore-2.png", scale = 0.5, mipmap_count = 4 }, |             { size = 64, filename = Lignumis.graphics .. "icons/crushed-gold-ore-2.png", scale = 0.5, mipmap_count = 4 }, | ||||||
|         }, |         }, | ||||||
|         subgroup = "raw-resource", |         subgroup = "raw-resource", | ||||||
|  | @ -79,16 +78,21 @@ data:extend({ | ||||||
|     } |     } | ||||||
| }) | }) | ||||||
| 
 | 
 | ||||||
|  | Recipe:new("molten-gold"):replaceIngredient("gold-ore", "crushed-gold-ore", 75) | ||||||
|  | 
 | ||||||
| if settings.startup["crushing-industry-byproducts"].value then | if settings.startup["crushing-industry-byproducts"].value then | ||||||
|     table.insert(data.raw["recipe"]["crushed-gold-ore"].results, { type = "item", name = "gold-ore", amount = 1, probability = 0.05 }) |     table.insert(data.raw["recipe"]["crushed-gold-ore"].results, | ||||||
|     table.insert(data.raw["recipe"]["crushed-gold-ore"].results, { type = "item", name = "sand", amount = 1, probability = 0.02 }) |         { type = "item", name = "gold-ore", amount = 1, probability = 0.05 }) | ||||||
|  |     table.insert(data.raw["recipe"]["crushed-gold-ore"].results, | ||||||
|  |         { type = "item", name = "moist-stromatolite-remnant", amount = 1, probability = 0.02 }) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| local gold_recipe = Recipe:new("burner-crusher") | local gold_recipe = Recipe:new("burner-crusher") | ||||||
|     :replaceIngredient("iron-gear-wheel", "wooden-gear-wheel") |     :replaceIngredient("iron-gear-wheel", "wooden-gear-wheel") | ||||||
|     :replaceIngredient("iron-plate", "gold-plate") |     :replaceIngredient("iron-plate", "gold-plate") | ||||||
|     :assign({ |     :assign({ | ||||||
|         category = settings.startup["lignumis-lumber-mill-more-recipes"].value and "wood-processing-or-assembling" or "crafting" |         category = settings.startup["lignumis-lumber-mill-more-recipes"].value and "wood-processing-or-assembling" or | ||||||
|  |         "crafting" | ||||||
|     }) |     }) | ||||||
| 
 | 
 | ||||||
| gold_recipe:clone("burner-crusher-copper") | gold_recipe:clone("burner-crusher-copper") | ||||||
|  | @ -101,4 +105,4 @@ gold_recipe:clone("burner-crusher-copper") | ||||||
|         } |         } | ||||||
|     }) |     }) | ||||||
|     :unlockedByTechnology("copper-processing") |     :unlockedByTechnology("copper-processing") | ||||||
|     :apply() |     :apply() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann