diff --git a/changelog.txt b/changelog.txt index bdb5689..5ec32e4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,14 @@ --------------------------------------------------------------------------------------------------- +Version: 0.6.2 +Date: 2021-07-02 + Changes: + - SE Update smelting unlock +--------------------------------------------------------------------------------------------------- +Version: 0.6.1 +Date: 2022-07-01 + Changes: + - SE: minor tech tree tweaks +--------------------------------------------------------------------------------------------------- Version: 0.6.0 Date: 2022-07-01 Changes: diff --git a/data-final-fixes.lua b/data-final-fixes.lua index cca2faf..8221e17 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -17,6 +17,10 @@ end if mods["space-exploration"] then -- core mining balancing util.add_to_product("se-core-fragment-omni", "tungsten-ore", -3) + + if string.sub(mods["space-exploration"], 1, 3) == "0.6" then + util.add_prerequisite("rocket-silo", "rocketry") + end end diff --git a/data-util.lua b/data-util.lua index ffda9ed..0994028 100644 --- a/data-util.lua +++ b/data-util.lua @@ -566,6 +566,14 @@ function util.set_subgroup(recipe_name, subgroup) end end +-- Set item subgroup +function util.set_item_subgroup(item, subgroup) + if me.bypass[item] then return end + if data.raw.item[item] and data.raw["item-subgroup"][subgroup] then + data.raw.item[item].subgroup = subgroup + end +end + -- Set recipe icons function util.set_icons(recipe_name, icons) if me.bypass[recipe_name] then return end diff --git a/info.json b/info.json index 394b3bf..5124912 100644 --- a/info.json +++ b/info.json @@ -1,5 +1,5 @@ { "name": "bztungsten", - "version": "0.6.0", + "version": "0.6.2", "factorio_version": "1.1", "title": "Tungsten", "author": "Brevven", diff --git a/tungsten-recipe-se.lua b/tungsten-recipe-se.lua index 984e06b..0e7bfba 100644 --- a/tungsten-recipe-se.lua +++ b/tungsten-recipe-se.lua @@ -31,8 +31,8 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then order = "a-h-z-a", } }) - data.raw.item["tungsten-plate"].subgroup = "tungsten" - data.raw.item["tungsten-carbide"].subgroup = "tungsten" + util.set_item_subgroup("tungsten-plate", "tungsten") + util.set_item_subgroup("tungsten-carbide", "tungsten") data:extend({ { type = "item", @@ -47,8 +47,8 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then name = "molten-tungsten", default_temperature = 3422, max_temperature = 3422, - base_color = {r=191, g=219, b=233}, - flow_color = {r=191, g=219, b=233}, + base_color = {r=255, g=160, b=60}, + flow_color = {r=255, g=160, b=60}, icons = {{icon = "__bztungsten__/graphics/icons/molten-tungsten.png", icon_size = 128}}, order = "a[molten]-a", pressure_to_speed_ratio = 0.4, @@ -126,6 +126,10 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then order = "a-c-b" }, }) + util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "molten-tungsten"}) + util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-ingot"}) + util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-ingot-to-plate"}) + util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-carbide-casting"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "molten-tungsten"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "tungsten-ingot"}) util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "tungsten-ingot-to-plate"})