fix a deadlock, more

This commit is contained in:
Brevven 2022-05-29 17:01:41 -07:00
parent 2efb1ed290
commit 39790a40b2
6 changed files with 28 additions and 7 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
{
"name": "bzcarbon",
"version": "0.1.5",
"version": "0.1.7",
"factorio_version": "1.1",
"title": "Graphite & Diamonds",
"author": "Brevven",

4
me.lua
View file

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