Compare commits

...

4 commits
2.0.2 ... main

Author SHA1 Message Date
Simon Brodtmann
48ecef0f98 2.0.3 2025-11-02 18:50:17 +01:00
Simon Brodtmann
e3dfbce46c Change optics to lamp 2025-11-02 10:28:29 +01:00
Simon Brodtmann
4f571d801b Fix name of argon-extraction and use basic-chemistry crafting category
https://discord.com/channels/1174743568590590053/1429279779634417684/1429279779634417684
2025-11-02 09:15:23 +01:00
Simon Brodtmann
d695f84c5d Fix booleans being strings 2025-11-02 09:14:23 +01:00
5 changed files with 13 additions and 5 deletions

View file

@ -1,4 +1,11 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 2.0.3
Date: 02.11.2025
Bug Fixes:
- Fix name of argon extraction recipe
- Argon extraction recipe uses basic-chemistry crafting category
- Change "optics" to "lamp" to respect the Factorio 2.0 renaming
---------------------------------------------------------------------------------------------------
Version: 2.0.2 Version: 2.0.2
Date: 21.10.2025 Date: 21.10.2025
Changes: Changes:

View file

@ -855,8 +855,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": "GasGasGases2", "name": "GasGasGases2",
"version": "2.0.2", "version": "2.0.3",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "GasGasGases", "title": "GasGasGases",
"description": "This mod is inspired by Brevven's BZ mods and adds the 6 noble gases plus uses for them.", "description": "This mod is inspired by Brevven's BZ mods and adds the 6 noble gases plus uses for them.",

View file

@ -294,7 +294,8 @@ if mods["bzgas2"] then
{ {
type = "recipe", type = "recipe",
name = "argon-extraction", name = "argon-extraction",
category = "chemistry", localised_name = { "fluid-name.argon" },
category = data.raw["recipe-category"]["basic-chemistry"] and "basic-chemistry" or "chemistry",
icons = (mods["Krastorio2"] and icons = (mods["Krastorio2"] and
{ {
{ icon = "__GasGasGases2__/graphics/icons/argon.png", icon_size = 64}, { icon = "__GasGasGases2__/graphics/icons/argon.png", icon_size = 64},

View file

@ -33,5 +33,5 @@ data:extend(
}) })
util.add_prerequisite("chemical-science-pack", "air-liquefaction") util.add_prerequisite("chemical-science-pack", "air-liquefaction")
if not mods["bzgas2"] then if not mods["bzgas2"] then
util.add_prerequisite("optics", "air-liquefaction") util.add_prerequisite("lamp", "air-liquefaction")
end end