diff --git a/carbon-recipe-updates.lua b/carbon-recipe-updates.lua index 4ff4a80..3da084c 100644 --- a/carbon-recipe-updates.lua +++ b/carbon-recipe-updates.lua @@ -108,7 +108,7 @@ if mods.Krastorio2 then util.add_ingredient("tungsten-carbide", "graphite", 4) util.replace_some_ingredient("kr-s-c-steel-beam", "iron-plate", 4, "graphite", 8) util.replace_some_ingredient("kr-s-c-steel-gear-wheel", "iron-plate", 2, "graphite", 4) -elseif mods.bzfoundry then +elseif mods.bzfoundry and util.me.foundry_enable() then util.replace_some_ingredient("steel-plate", "iron-plate", 1, "graphite", 1) util.replace_some_ingredient("tungsten-carbide", "tungsten-plate", 1, "graphite", 1) end diff --git a/changelog.txt b/changelog.txt index 8728b94..cb31153 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,14 @@ --------------------------------------------------------------------------------------------------- +Version: 0.1.7 +Date: 2022-04-25 + Fixes: + - Move K2 electric mining drill unlock behind automation core tech. +--------------------------------------------------------------------------------------------------- +Version: 0.1.6 +Date: 2022-04-22 + Fixes: + - Fix a minimal mode steel production deadlock. +--------------------------------------------------------------------------------------------------- Version: 0.1.5 Date: 2022-02-22 Features: diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 64229a9..f238421 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -93,7 +93,14 @@ if not mods.Krastorio2 and not mods["aai-industry"] and not mods.bzaluminum then util.set_enabled("inserter", false) util.add_prerequisite("logistic-science-pack", "electronics") end -util.set_enabled("electric-mining-drill", true) + +if not mods["aai-industry"] then + if mods.Krastorio2 then + util.add_effect("kr-automation-core", { type = "unlock-recipe", recipe = "electric-mining-drill" }) + else + util.set_enabled("electric-mining-drill", true) + end +end -- Must be last diff --git a/data-util.lua b/data-util.lua index 84b7785..d700645 100644 --- a/data-util.lua +++ b/data-util.lua @@ -541,10 +541,10 @@ end -- Set recipe icons function util.set_item_icons(item_name, icons) - if data.raw.recipe[item_name] then - data.raw.recipe[item_name].icons = icons - data.raw.recipe[item_name].icon = nil - data.raw.recipe[item_name].icon_size = nil + if data.raw.item[item_name] then + data.raw.item[item_name].icons = icons + data.raw.item[item_name].icon = nil + data.raw.item[item_name].icon_size = nil end end diff --git a/info.json b/info.json index 6ac4a43..3005b40 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzcarbon", - "version": "0.1.5", + "version": "0.1.7", "factorio_version": "1.1", "title": "Graphite & Diamonds", "author": "Brevven", diff --git a/me.lua b/me.lua index aa6829a..57efb5a 100644 --- a/me.lua +++ b/me.lua @@ -24,6 +24,10 @@ function me.use_flake_graphite() return mods["rso-mod"] or me.get_setting("bzcarbon-enable-flake-graphite") == "yes" end +function me.foundry_enable() + return not me.get_setting("bzfoundry-minimal") +end + function me.get_setting(name) if settings.startup[name] == nil then return nil