diff --git a/carbon-recipe.lua b/carbon-recipe.lua index 70289cf..2375340 100644 --- a/carbon-recipe.lua +++ b/carbon-recipe.lua @@ -63,13 +63,7 @@ data:extend({ name = "graphite-processing", icon_size = 128, icon = "__bzcarbon__/graphics/icons/graphite.png", - effects = - { - { - type = "unlock-recipe", - recipe = "graphite" - }, - }, + effects = {}, unit = { count = 30, @@ -83,8 +77,29 @@ data:extend({ order = "b-b" }, +}) + +if mods["space-exploration"] and not mods.Krastorio2 then +data:extend({ + { + type = "recipe", + name = "graphite-se", + category = "advanced-crafting", + order = "d[graphite]", + enabled = false, + energy_required = 0.5, + ingredients = {{"flake-graphite", 2}}, + result = "graphite" + } +}) +util.add_effect("graphite-processing", { type = "unlock-recipe", recipe = "graphite-se" }) +util.add_effect("se-pulveriser", { type = "unlock-recipe", recipe = "graphite" }) +else +util.add_effect("graphite-processing", { type = "unlock-recipe", recipe = "graphite" }) +end -- diamonds +data:extend({ { type = "item", name = "diamond", diff --git a/changelog.txt b/changelog.txt index 7596730..cbc423a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.7 +Date: 2022-01-04 + Changes: + - SE - non-pulverizer recipe for graphite to fix deadlock +--------------------------------------------------------------------------------------------------- Version: 0.0.6 Date: 2022-01-03 Changes: diff --git a/info.json b/info.json index 269c424..5192236 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzcarbon", - "version": "0.0.6", + "version": "0.0.7", "factorio_version": "1.1", "title": "Graphite & Diamonds", "author": "Brevven",