diff --git a/changelog.txt b/changelog.txt index fc2a6fd..2d5825d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.2 +Date: 2022-07-06 + Features: + - Compatible with both Space Exploration 0.5 and 0.6. Compatibility with SE 0.5 will likely not + be as up to date, and will eventually not be supported after a few months. +--------------------------------------------------------------------------------------------------- Version: 0.0.1 Date: 2022-07-05 Features: diff --git a/info.json b/info.json index 4de9850..0264305 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztin", - "version": "0.0.1", + "version": "0.0.2", "factorio_version": "1.1", "title": "Tin", "author": "Brevven", @@ -14,7 +14,7 @@ "? bzzirconium >= 0.6.0", "? bztungsten >= 0.6.0", "? bzcarbon >= 0.3.0", - "? space-exploration >= 0.6.0", + "? space-exploration >= 0.5.100", "? aai-industry", "? Krastorio2", "? sand-and-glass", diff --git a/tin-recipe-se.lua b/tin-recipe-se.lua index c927b1e..53d612c 100644 --- a/tin-recipe-se.lua +++ b/tin-recipe-se.lua @@ -20,6 +20,7 @@ if mods["space-exploration"] then } }) +if string.sub(mods["space-exploration"], 1, 3) == "0.6" then data:extend({ { type = "item-subgroup", @@ -116,4 +117,65 @@ if mods["space-exploration"] then data.raw.recipe["enriched-tin-plate"].order= "d[tin-plate]" se_delivery_cannon_recipes["enriched-tin"] = {name= "enriched-tin"} end +else + data.raw.item["tin-plate"].subgroup = "plates" + if mods["Krastorio2"] then + + data:extend({ + { + type = "recipe", + name = "enriched-tin-smelting-vulcanite", + category = "smelting", + order = "d[tin-plate]", + energy_required = 18, + enabled = false, + always_show_made_in = true, + allow_as_intermediate = false, + ingredients = { + {name = "enriched-tin", amount = 8}, + {name = "se-vulcanite-block", amount = 1}, + }, + results = { + {name = "tin-plate", amount = 12}, + }, + icons = + { + { icon = "__bztin__/graphics/icons/tin-plate.png", icon_size = 128}, + { icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 64, scale=0.25, shift= {-10, -10}}, + }, + }, + }) + table.insert(data.raw.technology["se-processing-vulcanite"].effects, + {type = "unlock-recipe", recipe= "enriched-tin-smelting-vulcanite"}) + data.raw.recipe["enriched-tin-plate"].order= "d[tin-plate]" + se_delivery_cannon_recipes["enriched-tin"] = {name= "enriched-tin"} + else + data:extend({ + { + type = "recipe", + name = "tin-smelting-vulcanite", + category = "smelting", + order = "d[tin-plate]", + energy_required = 18, + enabled = false, + always_show_made_in = true, + allow_as_intermediate = false, + ingredients = { + {name = "tin-ore", amount = 8}, + {name = "se-vulcanite-block", amount = 1}, + }, + results = { + {name = "tin-plate", amount = 12}, + }, + icons = + { + { icon = "__bztin__/graphics/icons/tin-plate.png", icon_size = 128}, + { icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 64, scale=0.25, shift= {-10, -10}}, + }, + }, + }) + table.insert(data.raw.technology["se-processing-vulcanite"].effects, + {type = "unlock-recipe", recipe= "tin-smelting-vulcanite"}) + end +end end