Compare commits

..

No commits in common. "main" and "2.0.0" have entirely different histories.
main ... 2.0.0

7 changed files with 20 additions and 24 deletions

View file

@ -12,7 +12,8 @@ This mod mostly impacts the early game including electronic circuit creation. Wi
- [cackling fiend](https://mods.factorio.com/user/cackling.fiend) (Update to 2.0) - [cackling fiend](https://mods.factorio.com/user/cackling.fiend) (Update to 2.0)
- [ElAdamo](https://mods.factorio.com/user/ElAdamo) (Gas-fired boiler: code, design, graphics) (code is public domain) - [ElAdamo](https://mods.factorio.com/user/ElAdamo) (Gas-fired boiler: code, design, graphics) (code is public domain)
- [Sakuro](https://github.com/sakuro) (expand options, icon tweaks) - [Sakuro](https://github.com/sakuro) (expand options, icon tweaks)
- [Benjah-bmm27](https://commons.wikimedia.org/wiki/User:Benjah-bmm27) ([Formaldehyde icon](https://commons.wikimedia.org/wiki/File:Formaldehyde-3D-vdW.png), public domain) - [Benjah-bmm27](https://commons.wikimedia.org/wiki/User:Benjah-bmm27) ([Formaldehyde icon](https://commons.wikimedia.org/wiki/File:Formaldehyde-3D-vdW.png),
public domain)
### Compatibility ### Compatibility
- [nihilistzsche](https://github.com/nihilistzsche) - [nihilistzsche](https://github.com/nihilistzsche)

View file

@ -1,14 +1,4 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
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:
- Switch to bz mods forks
---------------------------------------------------------------------------------------------------
Version: 2.0.0 Version: 2.0.0
Date: 19.10.2025 Date: 19.10.2025
Changes: Changes:

View file

@ -17,7 +17,7 @@ end
-- Vanilla burner phase tweaks -- green circuits after electronics -- Vanilla burner phase tweaks -- green circuits after electronics
-- Electronic circuit recipe set below in compatibility script -- Electronic circuit recipe set below in compatibility script
if not mods.Krastorio2 and not mods["aai-industry"] and not mods.bzaluminum2 and not mods["bzcarbon2"] then if not mods.Krastorio2 and not mods["aai-industry"] and not mods.bzaluminum2 and not mods.bzcarbon then
util.replace_ingredient("offshore-pump", "electronic-circuit", "copper-cable") util.replace_ingredient("offshore-pump", "electronic-circuit", "copper-cable")
util.replace_ingredient("lab", "electronic-circuit", "copper-cable") util.replace_ingredient("lab", "electronic-circuit", "copper-cable")
util.replace_ingredient("electric-mining-drill", "electronic-circuit", "copper-cable", 2, true) util.replace_ingredient("electric-mining-drill", "electronic-circuit", "copper-cable", 2, true)
@ -38,7 +38,7 @@ if not mods.Krastorio2 and not mods["aai-industry"] and not mods.bzaluminum2 and
util.set_enabled("inserter", false) util.set_enabled("inserter", false)
util.add_prerequisite("logistic-science-pack", "electronics") util.add_prerequisite("logistic-science-pack", "electronics")
end end
if not mods.bzaluminum2 and not mods["bzcarbon2"] then if not mods.bzaluminum2 and not mods.bzcarbon then
util.replace_ingredients_prior_to("electronics", "electronic-circuit", "copper-cable", 2) util.replace_ingredients_prior_to("electronics", "electronic-circuit", "copper-cable", 2)
end end

View file

@ -1188,8 +1188,8 @@ function util.replace_ingredients_prior_to(tech, old, new, multiplier)
end end
util.remove_prior_unlocks(tech, old) util.remove_prior_unlocks(tech, old)
for i, recipe in pairs(data.raw.recipe) do for i, recipe in pairs(data.raw.recipe) do
if (recipe.enabled and recipe.enabled ~= false) if (recipe.enabled and recipe.enabled ~= 'false')
and (not recipe.hidden or recipe.hidden == true) -- probably don't want to change hidden recipes 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 :( and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :(
then then
-- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :| -- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :|

View file

@ -1,6 +1,6 @@
{ {
"name": "bzgas2", "name": "bzgas2",
"version": "2.0.2", "version": "2.0.0",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "Natural Gas", "title": "Natural Gas",
"description": "Adds a natural gas resource, along with early game plastic.", "description": "Adds a natural gas resource, along with early game plastic.",
@ -9,12 +9,12 @@
"dependencies": [ "dependencies": [
"base >= 2.0.0", "base >= 2.0.0",
"? bzfoundry2 >= 2.0.0", "? bzfoundry2 >= 2.0.0",
"? bztitanium2 >= 2.0.26", "? bztitanium >= 2.0.26",
"? bzlead2 >= 2.0.29", "? bzlead >= 2.0.28",
"? bzzirconium2 >= 2.1.14", "? bzzirconium >= 2.1.13",
"? bztungsten2 >= 2.0.0", "? bztungsten >= 0.6.0",
"? bzcarbon2 >= 2.0.22", "? bzcarbon >= 2.0.21",
"? bztin2 >= 2.1.16", "? bztin >= 2.1.15",
"? warptorio2_expansion", "? warptorio2_expansion",
"? space-exploration >= 0.7.34", "? space-exploration >= 0.7.34",
"? aai-industry >= 0.6.13", "? aai-industry >= 0.6.13",

View file

@ -1,5 +1,10 @@
local util = require("data-util"); local util = require("data-util");
b_prereq = {"basic-chemistry"}
if data.raw.technology["foundry"] then
table.insert(b_prereq, "foundry")
end
data:extend({ data:extend({
{ {
type = "item", type = "item",
@ -30,7 +35,7 @@ data:extend({
name = "bakelite", name = "bakelite",
icon = "__bzgas2__/graphics/technology/bakelite.png", icon = "__bzgas2__/graphics/technology/bakelite.png",
icon_size = 256, icon_size = 256,
prerequisites = {"basic-chemistry"}, prerequisites = b_prereq,
effects = { effects = {
{type = "unlock-recipe", recipe = "bakelite"}, {type = "unlock-recipe", recipe = "bakelite"},
}, },

View file

@ -7,7 +7,7 @@ local ge_ingredients = {
{type="item", name="stone-brick", amount=4}, {type="item", name="stone-brick", amount=4},
} }
local ge_prereq = {"automation"} local ge_prereq = {"automation"}
if mods["bzlead2"] then table.insert(ge_ingredients, {type="item", name="lead-plate", amount=4}) end if mods.bzlead then table.insert(ge_ingredients, {type="item", name="lead-plate", amount=4}) end
if mods.Krastorio2 then if mods.Krastorio2 then
table.insert(ge_ingredients, {type="item", name="kr-sand", amount=10}) table.insert(ge_ingredients, {type="item", name="kr-sand", amount=10})
ge_prereq = {"kr-stone-processing"} ge_prereq = {"kr-stone-processing"}