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
 | 
				
			||||||
| 
						 | 
					@ -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")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue