compat
This commit is contained in:
parent
9e647a4caa
commit
e389779cc4
4 changed files with 16 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.1.6
|
||||
Date: 2025-02-10
|
||||
Changes:
|
||||
- Compatibility with Probablistic Agriculture
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.1.5
|
||||
Date: 2025-02-01
|
||||
Changes:
|
||||
|
|
|
@ -4,6 +4,8 @@ require("tin-recipe-final-rrr")
|
|||
|
||||
local util = require("data-util");
|
||||
|
||||
util.add_product("jellynut-processing", util.item("jellyskin", 1, .25)) -- in case of clobbering
|
||||
|
||||
util.replace_some_ingredient("se-glass-vulcanite", "sand", 1, "tin-plate", 1)
|
||||
util.add_product("se-glass-vulcanite", {type="item", name="tin-plate", amount=1, catalyst_amount=1, probability=0.8})
|
||||
util.set_main_product("se-glass-vulcanite", "glass")
|
||||
|
@ -41,5 +43,7 @@ util.size_recycler_output()
|
|||
util.redo_recycling()
|
||||
require("alloy-separation") -- should be after final redo_recycling
|
||||
|
||||
|
||||
|
||||
-- Must be last
|
||||
util.create_list()
|
||||
|
|
|
@ -928,7 +928,12 @@ function add_product(recipe, product)
|
|||
if recipe ~= nil then
|
||||
if product.name and data.raw[product.type][product.name] then
|
||||
if recipe.results == nil then
|
||||
recipe.results = {{recipe.result, recipe.result_count and recipe.result_count or 1}}
|
||||
recipe.results = {}
|
||||
end
|
||||
for _, old in pairs(recipe.results) do
|
||||
if old.name == product.name then
|
||||
return
|
||||
end
|
||||
end
|
||||
recipe.result = nil
|
||||
recipe.result_count = nil
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bztin",
|
||||
"version": "2.1.5",
|
||||
"version": "2.1.6",
|
||||
"factorio_version": "2.0",
|
||||
"title": "Tin",
|
||||
"author": "Brevven",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue