Compare commits

...

4 commits
2.0.1 ... main

Author SHA1 Message Date
Simon Brodtmann
90290e98cd 2.0.2 2025-10-22 23:27:37 +02:00
Simon Brodtmann
9585fe87e5 remove dependency on bz-dsr-bridge 2025-10-22 23:02:44 +02:00
Simon Brodtmann
8d5e83db99 Fix technologies 2025-10-22 23:02:26 +02:00
Simon Brodtmann
7b8bcf4217 Fix booleans being strings 2025-10-22 00:11:11 +02:00
5 changed files with 18 additions and 5 deletions

View file

@ -17,10 +17,19 @@ if not mods.Krastorio2 and not mods["aai-industry"] then
util.add_effect("electronics", { type = "unlock-recipe", recipe = "electronic-circuit" })
util.add_effect("electronics", { type = "unlock-recipe", recipe = "inserter" })
util.add_effect("electronics", { type = "unlock-recipe", recipe = "long-handed-inserter" })
util.remove_recipe_effect("electronics", "lab")
util.remove_recipe_effect("automation", "long-handed-inserter")
util.set_enabled("electronic-circuit", false)
util.set_enabled("inserter", false)
util.add_prerequisite("logistic-science-pack", "electronics")
util.remove_prerequisite("automation-science-pack", "electronics")
util.add_prerequisite("copper-processing", "automation-science-pack")
util.remove_prerequisite("automation-science-pack", "electronics")
util.add_effect("steam-power", { type = "unlock-recipe", recipe = "lab" })
util.remove_prerequisite("fast-inserter", "automation-science-pack")
util.add_prerequisite("fast-inserter", "electronics")
util.remove_prerequisite("lamp", "automation-science-pack")
util.add_prerequisite("lamp", "electronics")
end
util.replace_ingredient("lab", "copper-plate", "aluminum-plate")

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.2
Date: 22.10.2025
Bug Fixes:
- Fix technologies
---------------------------------------------------------------------------------------------------
Version: 2.0.1
Date: 21.10.2025
Changes:

View file

@ -5,7 +5,7 @@ data:extend({
{
name = 'el_purify_aluminum_recipe',
type = 'recipe',
enabled = 'false',
enabled = false,
category = 'el_purifier_category',
main_product = 'el_dirty_water',
ingredients = {

View file

@ -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 :|

View file

@ -1,6 +1,6 @@
{
"name": "bzaluminum2",
"version": "2.0.1",
"version": "2.0.2",
"factorio_version": "2.0",
"title": "Aluminum",
"description": "Adds aluminum, alumina, cables, alloys and more to the game.",
@ -9,7 +9,6 @@
"dependencies": [
"base >= 2.0.0",
"bzfoundry2 >= 2.0.0",
"~ bz-dsr-bridge",
"? bztitanium2 >= 2.0.27",
"? bzlead2 >= 2.0.29",
"? bzzirconium2 >= 2.1.14",