diff --git a/changelog.txt b/changelog.txt index 41a9dde..19eafd4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,12 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.14 +Date: 2021-05-26 + Features: + - Additional turrets compatibility + - 5dims compatibility + Changes: + - Decrease icon file size a bit +--------------------------------------------------------------------------------------------------- Version: 0.0.13 Date: 2021-05-24 Changes: diff --git a/data-updates.lua b/data-updates.lua index 81a5323..b2b0373 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -2,3 +2,4 @@ require("tungsten-recipe-updates") require("tungsten-matter") require("omni") require("map-gen-preset-updates") +require("tungsten-recipe-5d") diff --git a/info.json b/info.json index 6aae3d3..ff545e2 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztungsten", - "version": "0.0.13", + "version": "0.0.14", "factorio_version": "1.1", "title": "Tungsten", "author": "Brevven", diff --git a/tungsten-recipe-5d.lua b/tungsten-recipe-5d.lua new file mode 100644 index 0000000..fb1e024 --- /dev/null +++ b/tungsten-recipe-5d.lua @@ -0,0 +1,151 @@ +local util = require("__bztungsten__.tungsten-util"); + +if mods["5dim_core"] then + + data.raw.item["tungsten-plate"].subgroup = "plates-plates" + data.raw.recipe["tungsten-plate"].subgroup = "plates-plates" + data.raw.recipe["tungsten-carbide"].subgroup = "plates-misc" + data.raw.item["tungsten-carbide"].subgroup = "plates-misc" + data.raw.item["tungsten-ore"].subgroup = "plates-ore" + + -- Industrial furnace + data:extend({ + { + type = "recipe", + name = "tungsten-plate-industrial-ore", + category = "industrial-furnace", + subgroup = "plates-industrial-ore", + order = "ad[tungsten-plate]", + icon = "__bztungsten__/graphics/icons/tungsten-plate.png", + icon_size = 128, icon_mipmaps = 3, + enabled = true, + energy_required = 50, + ingredients = {{"tungsten-ore", 85}}, + result = "tungsten-plate", + result_count = 50, + } + }) + + -- Lead dust + data:extend( + { + { + type = "item", + name = "tungsten-dust", + subgroup = "plates-dust", + order = "d[tungsten-plate]", + icon = "__bztungsten__/graphics/icons/tungsten-powder.png", + icon_size = 64, icon_mipmaps = 3, + stack_size = 200 + }, + { + type = "recipe", + name = "tungsten-plate-dust", + icon = "__bztungsten__/graphics/icons/tungsten-plate.png", + icon_size = 128, icon_mipmaps = 3, + subgroup = "plates-plates2", + order = "d[tungsten-plate]", + category = "smelting", + energy_required = 32/15, + enabled = true, + ingredients = { + {"tungsten-dust", 2} + }, + result = "tungsten-plate", + }, + { + type = "recipe", + name = "tungsten-dust", + icon = "__bztungsten__/graphics/icons/tungsten-powder.png", + icon_size = 64, icon_mipmaps = 3, + category = "mashering", + subgroup = "", + order = "d[tungsten-plate]", + energy_required = 3.2, + enabled = true, + ingredients = { + {"tungsten-ore", 1} + }, + results = { + {type="item", name = "tungsten-dust", amount=2}, + } + }, + { + type = "recipe", + name = "tungsten-plate-industrial-dust", + category = "industrial-furnace", + subgroup = "plates-industrial-dust", + order = "ad[tungsten-plate]", + icon = "__bztungsten__/graphics/icons/tungsten-plate.png", + icon_size = 128, icon_mipmaps = 3, + enabled = true, + energy_required = 50, + ingredients = {{"tungsten-dust", 85}}, + result = util.tungsten_plate, + result_count = 50, + }, + { + type = "recipe", + name = "tungsten-carbide-industrial-dust", + category = "industrial-furnace", + subgroup = "plates-industrial-ore", + order = "ae[tungsten-carbide]", + icon = "__bztungsten__/graphics/icons/tungsten-carbide.png", + icon_size = 128, icon_mipmaps = 3, + enabled = true, + energy_required = 500, + ingredients = {{"tungsten-plate", 85}}, + result = util.tungsten_plate, + result_count = 20, + } + }) + + local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"} + local items = {"5d-electric-mining-drill-", "5d-chemical-plant-"} + for i, mk in pairs(mks) do + for j, item in pairs(items) do + util.add_ingredient(item..mk, "tungsten-carbide", 1) + end + end + + local mks = {"04", "05", "06", "07", "08", "09", "10"} + local items = {"5d-assembling-machine-"} + for i, mk in pairs(mks) do + for j, item in pairs(items) do + util.add_ingredient(item..mk, "tungsten-carbide", 2) + end + end + + local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"} + local items = {"5d-electric-furnace-"} + for i, mk in pairs(mks) do + for j, item in pairs(items) do + util.add_ingredient(item..mk, "tungsten-plate", 5) + end + end + + local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"} + local items = {"5d-heat-pipe-"} + for i, mk in pairs(mks) do + for j, item in pairs(items) do + util.replace_some_ingredient(item..mk, "copper-plate", 10, "tungsten-plate", 10) + end + end + + local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"} + local items = {"5d-heat-exchanger-"} + for i, mk in pairs(mks) do + for j, item in pairs(items) do + util.replace_some_ingredient(item..mk, "copper-plate", 50, "tungsten-plate", 50) + end + end + + local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"} + local items = {"5d-nuclear-reactor-"} + for i, mk in pairs(mks) do + for j, item in pairs(items) do + util.add_ingredient(item..mk, "tungsten-plate", 400) + end + end + +end