This commit is contained in:
Brevven 2023-03-23 03:12:45 -07:00
parent e41a8efa0c
commit 11a3e17c4b
9 changed files with 47 additions and 7 deletions

View file

@ -0,0 +1,18 @@
local util = require("data-util");
if mods["248k"] then
local au2 = "fu_materials_gold_ingot"
-- Swap out all 248k gold ingot for BZ gold ingot
for i, recipe in pairs(data.raw.recipe) do
util.replace_ingredient(recipe.name, au2, "gold-ingot")
util.replace_product(recipe.name, au2, "gold-ingot")
end
if mods.LootingRemnants and data.raw.recipe.gr_white_hole_cycle_fu_materials_gold_recipe~=nil then
data.raw.recipe.gr_white_hole_cycle_fu_materials_gold_recipe.exception_mods = {"Deconstruction", "LootingRemnants"}
end
-- Remove 248k gold ingot
util.remove_raw("item", au2)
end

6
compatibility/248k.lua Normal file
View file

@ -0,0 +1,6 @@
local util = require("data-util");
-- Update 248k gold production chain to include gold ore
util.add_ingredient("fi_pure_gold_recipe", "gold-ore", 10)
util.add_to_product("fi_pure_gold_recipe", "fi_materials_pure_gold", 2)