248k
This commit is contained in:
parent
ed06026ab4
commit
2293df67e6
5 changed files with 22 additions and 6 deletions
|
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.2.0
|
||||
Date: 2022-06-26
|
||||
Features:
|
||||
- Beta support for 248k. Carbon fiber uses graphite. More changes to come.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.10
|
||||
Date: 2022-06-09
|
||||
Changes:
|
||||
|
|
|
|||
4
compatibility/248k.lua
Normal file
4
compatibility/248k.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
local util = require("__bzcarbon__.data-util");
|
||||
|
||||
util.remove_ingredient("fu_carbon_fiber_recipe", "fi_crushed_coal_item")
|
||||
util.add_ingredient("fu_carbon_fiber_recipe", "graphite", 3)
|
||||
|
|
@ -2,6 +2,7 @@ require("carbon-recipe-updates")
|
|||
require("map-gen-preset-updates")
|
||||
require("carbon-matter")
|
||||
require("strange-matter")
|
||||
require("compatibility/248k")
|
||||
require("carbon-recipe-modules") -- Should be last import, need in both updates and final-fixes
|
||||
|
||||
-- require("omni")
|
||||
|
|
|
|||
|
|
@ -457,16 +457,21 @@ function util.replace_product(recipe_name, old, new)
|
|||
end
|
||||
|
||||
function replace_product(recipe, old, new)
|
||||
if recipe ~= nil and recipe.results ~= nil then
|
||||
if recipe then
|
||||
if recipe.main_product == old then
|
||||
recipe.main_product = new
|
||||
end
|
||||
if recipe.result == old then
|
||||
recipe.results = new
|
||||
recipe.result = new
|
||||
return
|
||||
end
|
||||
if recipe.results then
|
||||
for i, result in pairs(recipe.results) do
|
||||
if result.name == old then result.name = new end
|
||||
if result[1] == old then result[1] = new end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- Remove an element of type t and name from data.raw
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bzcarbon",
|
||||
"version": "0.1.10",
|
||||
"version": "0.2.0",
|
||||
"factorio_version": "1.1",
|
||||
"title": "Graphite & Diamonds",
|
||||
"author": "Brevven",
|
||||
|
|
@ -14,6 +14,7 @@
|
|||
"? space-exploration",
|
||||
"? aai-industry",
|
||||
"? Krastorio2",
|
||||
"? 248k",
|
||||
"? deadlock-beltboxes-loaders",
|
||||
"? DeadlockCrating"
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue