tweaks, pyro tech

This commit is contained in:
Brevven 2022-07-01 18:32:12 -07:00
parent 0b3d352f72
commit 66d27865e8
5 changed files with 31 additions and 5 deletions

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
{ "name": "bztungsten",
"version": "0.6.0",
"version": "0.6.2",
"factorio_version": "1.1",
"title": "Tungsten",
"author": "Brevven",

View file

@ -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"})