Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ea99b716c | ||
|
|
858d7d4f20 | ||
|
|
159ca3b1c0 |
4 changed files with 9 additions and 9 deletions
|
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.2
|
||||
Date: 22.10.2025
|
||||
Bug Fixes:
|
||||
- Fix bakelite prerequisite if foundry is present
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.1
|
||||
Date: 21.10.2025
|
||||
Changes:
|
||||
|
|
|
|||
|
|
@ -1188,8 +1188,8 @@ function util.replace_ingredients_prior_to(tech, old, new, multiplier)
|
|||
end
|
||||
util.remove_prior_unlocks(tech, old)
|
||||
for i, recipe in pairs(data.raw.recipe) do
|
||||
if (recipe.enabled and recipe.enabled ~= 'false')
|
||||
and (not recipe.hidden or recipe.hidden == 'true') -- probably don't want to change hidden recipes
|
||||
if (recipe.enabled and recipe.enabled ~= false)
|
||||
and (not recipe.hidden or recipe.hidden == true) -- probably don't want to change hidden recipes
|
||||
and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :(
|
||||
then
|
||||
-- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :|
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bzgas2",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"factorio_version": "2.0",
|
||||
"title": "Natural Gas",
|
||||
"description": "Adds a natural gas resource, along with early game plastic.",
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
local util = require("data-util");
|
||||
|
||||
b_prereq = {"basic-chemistry"}
|
||||
if data.raw.technology["foundry"] then
|
||||
table.insert(b_prereq, "foundry")
|
||||
end
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
|
|
@ -35,7 +30,7 @@ data:extend({
|
|||
name = "bakelite",
|
||||
icon = "__bzgas2__/graphics/technology/bakelite.png",
|
||||
icon_size = 256,
|
||||
prerequisites = b_prereq,
|
||||
prerequisites = {"basic-chemistry"},
|
||||
effects = {
|
||||
{type = "unlock-recipe", recipe = "bakelite"},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue