sintering SE
This commit is contained in:
parent
1d6ec5ffb5
commit
bf1767b726
6 changed files with 59 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ Date: 2022-08-09
|
||||||
Features:
|
Features:
|
||||||
- New optional intermediate: Copper tungsten, replaces tungsten plate in some recipes.
|
- New optional intermediate: Copper tungsten, replaces tungsten plate in some recipes.
|
||||||
If not unlocked on settings change, use "TungstenRecipes" (no slashes) command.
|
If not unlocked on settings change, use "TungstenRecipes" (no slashes) command.
|
||||||
|
- Space Exploration: New option to use tungsten powder instead of molten tungsten.
|
||||||
- A few basic recipe tweaks for 248k
|
- A few basic recipe tweaks for 248k
|
||||||
Changes:
|
Changes:
|
||||||
- Rocketry now defaults to not requiring military science packs. Option still exists for now.
|
- Rocketry now defaults to not requiring military science packs. Option still exists for now.
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ tungsten-ore=[item=tungsten-ore] Wolframite
|
||||||
|
|
||||||
[item-name]
|
[item-name]
|
||||||
tungsten-ore=Wolframite
|
tungsten-ore=Wolframite
|
||||||
|
tungsten-powder=Tungsten powder
|
||||||
tungsten-dust=Tungsten dust
|
tungsten-dust=Tungsten dust
|
||||||
tungsten-plate=Tungsten plate
|
tungsten-plate=Tungsten plate
|
||||||
tungsten-ingot=Tungsten ingot
|
tungsten-ingot=Tungsten ingot
|
||||||
|
|
@ -63,6 +64,7 @@ bztungsten-mining-fluid-amount=Mining fluid amount
|
||||||
bztungsten-mining-fluid-amount-k2=Mining fluid amount for Krastorio2
|
bztungsten-mining-fluid-amount-k2=Mining fluid amount for Krastorio2
|
||||||
bztungsten-starting-patch=Starting wolframite patch
|
bztungsten-starting-patch=Starting wolframite patch
|
||||||
bztungsten-more-intermediates=Enable more intermediates
|
bztungsten-more-intermediates=Enable more intermediates
|
||||||
|
bztungsten-se-sintering=SE: Sinter powdered tungsten instead of casting
|
||||||
|
|
||||||
[mod-setting-description]
|
[mod-setting-description]
|
||||||
bztungsten-recipe-bypass=Skip modifying these recipes (comma-separated list).
|
bztungsten-recipe-bypass=Skip modifying these recipes (comma-separated list).
|
||||||
|
|
@ -71,6 +73,7 @@ bztungsten-advanced-carbon-furnace=A furnace to smelt tungsten carbide quickly.
|
||||||
bztungsten-mining-fluid-amount=Amount of fluid (water) needed to mine, default 10. Note, this is displayed as 1/10th the value in some parts of the game.
|
bztungsten-mining-fluid-amount=Amount of fluid (water) needed to mine, default 10. Note, this is displayed as 1/10th the value in some parts of the game.
|
||||||
bztungsten-mining-fluid-amount-k2=Mining fluid amount for Krastorio2, default 1. Note, this is displayed as 1/10th the value in some parts of the game.
|
bztungsten-mining-fluid-amount-k2=Mining fluid amount for Krastorio2, default 1. Note, this is displayed as 1/10th the value in some parts of the game.
|
||||||
bztungsten-starting-patch=Whether a new game should have a starting wolframite patch. Disabled by default in vanilla, AAI, etc.
|
bztungsten-starting-patch=Whether a new game should have a starting wolframite patch. Disabled by default in vanilla, AAI, etc.
|
||||||
|
bztungsten-se-sintering=Due to the high melting point of tungsten, instead of creating molten tungsten and casting it, create tungsten powder and sinter it (still in a casting machine).
|
||||||
|
|
||||||
[string-mod-setting]
|
[string-mod-setting]
|
||||||
bztungsten-more-intermediates-no=No
|
bztungsten-more-intermediates-no=No
|
||||||
|
|
|
||||||
4
me.lua
4
me.lua
|
|
@ -16,6 +16,10 @@ function me.cuw()
|
||||||
return me.get_setting("bztungsten-more-intermediates") == "cuw"
|
return me.get_setting("bztungsten-more-intermediates") == "cuw"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function me.sinter()
|
||||||
|
return me.get_setting("bztungsten-se-sintering")
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function me.starting_patch()
|
function me.starting_patch()
|
||||||
return mods["Krastorio2"] or me.get_setting("bztungsten-starting-patch")
|
return mods["Krastorio2"] or me.get_setting("bztungsten-starting-patch")
|
||||||
|
|
|
||||||
13
settings.lua
13
settings.lua
|
|
@ -51,5 +51,18 @@ data:extend({
|
||||||
default_value = 10,
|
default_value = 10,
|
||||||
minimum_value = 1,
|
minimum_value = 1,
|
||||||
maximum_value = 1000,
|
maximum_value = 1000,
|
||||||
|
order = "aga",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if mods["space-exploration"] and string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "bool-setting",
|
||||||
|
name = "bztungsten-se-sintering",
|
||||||
|
setting_type = "startup",
|
||||||
|
default_value = false,
|
||||||
|
order = "acm",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@ if deadlock then
|
||||||
if util.me.cuw() then
|
if util.me.cuw() then
|
||||||
deadlock.add_stack("cuw", "__bztungsten__/graphics/icons/stacked/cuw-stacked.png" , "deadlock-stacking-2", 128)
|
deadlock.add_stack("cuw", "__bztungsten__/graphics/icons/stacked/cuw-stacked.png" , "deadlock-stacking-2", 128)
|
||||||
end
|
end
|
||||||
|
if data.raw.item["tungsten-powder"] then
|
||||||
|
deadlock.add_stack("tungsten-powder", nil, "deadlock-stacking-2", nil)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Deadlock crating recipes
|
-- Deadlock crating recipes
|
||||||
|
|
@ -33,5 +36,8 @@ if deadlock_crating then
|
||||||
if util.me.cuw() then
|
if util.me.cuw() then
|
||||||
deadlock_crating.add_crate("cuw", "deadlock-crating-2")
|
deadlock_crating.add_crate("cuw", "deadlock-crating-2")
|
||||||
end
|
end
|
||||||
|
if data.raw.item["tungsten-powder"] then
|
||||||
|
deadlock_crating.add_crate("tungsten-powder", "deadlock-crating-2")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,15 @@ if string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
|
||||||
stack_size = 50,
|
stack_size = 50,
|
||||||
subgroup = "tungsten",
|
subgroup = "tungsten",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
|
util.me.sinter() and {
|
||||||
|
type = "item",
|
||||||
|
name = "tungsten-powder",
|
||||||
|
icons = {{icon = "__bztungsten__/graphics/icons/tungsten-powder.png", icon_size = 64, icon_mipmaps = 3}},
|
||||||
|
order = "b-a-x",
|
||||||
|
subgroup = "tungsten",
|
||||||
|
stack_size = util.get_stack_size(200),
|
||||||
|
} or {
|
||||||
type = "fluid",
|
type = "fluid",
|
||||||
name = "molten-tungsten",
|
name = "molten-tungsten",
|
||||||
default_temperature = 3422,
|
default_temperature = 3422,
|
||||||
|
|
@ -60,7 +68,24 @@ if string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
|
||||||
auto_barrel = false,
|
auto_barrel = false,
|
||||||
subgroup = "fluid",
|
subgroup = "fluid",
|
||||||
},
|
},
|
||||||
{
|
util.me.sinter() and {
|
||||||
|
type = "recipe",
|
||||||
|
category = "smelting",
|
||||||
|
name = "tungsten-powder",
|
||||||
|
subgroup = "tungsten",
|
||||||
|
results = {
|
||||||
|
{type = "item", name = "tungsten-powder", amount = mods.Krastorio2 and 30 or 36},
|
||||||
|
},
|
||||||
|
energy_required = 60,
|
||||||
|
ingredients = {
|
||||||
|
{name = mods.Krastorio2 and "enriched-tungsten" or "tungsten-ore", amount = 24},
|
||||||
|
{type = "fluid", name = "se-pyroflux", amount = 10},
|
||||||
|
},
|
||||||
|
enabled = false,
|
||||||
|
always_show_made_in = true,
|
||||||
|
allow_as_intermediate = false,
|
||||||
|
order = "a-a"
|
||||||
|
} or {
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
category = "smelting",
|
category = "smelting",
|
||||||
name = "molten-tungsten",
|
name = "molten-tungsten",
|
||||||
|
|
@ -85,6 +110,7 @@ if string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
|
||||||
results = {{"tungsten-ingot", 1}},
|
results = {{"tungsten-ingot", 1}},
|
||||||
energy_required = 18,
|
energy_required = 18,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
|
util.me.sinter() and {type = "item", name = "tungsten-powder", amount = 15} or
|
||||||
{type = "fluid", name = "molten-tungsten", amount = 375},
|
{type = "fluid", name = "molten-tungsten", amount = 375},
|
||||||
},
|
},
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
|
@ -97,12 +123,15 @@ if string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
|
||||||
category = "casting",
|
category = "casting",
|
||||||
icons = {
|
icons = {
|
||||||
{icon = "__bztungsten__/graphics/icons/tungsten-carbide.png", icon_size = 128},
|
{icon = "__bztungsten__/graphics/icons/tungsten-carbide.png", icon_size = 128},
|
||||||
|
util.me.sinter() and
|
||||||
|
{icon = "__bztungsten__/graphics/icons/tungsten-powder.png", icon_size = 64, scale = 0.25, shift = {-8, -8}} or
|
||||||
{icon = "__bztungsten__/graphics/icons/molten-tungsten.png", icon_size = 128, scale = 0.125, shift = {-8, -8}},
|
{icon = "__bztungsten__/graphics/icons/molten-tungsten.png", icon_size = 128, scale = 0.125, shift = {-8, -8}},
|
||||||
},
|
},
|
||||||
results = {{"tungsten-carbide", 4}},
|
results = {{"tungsten-carbide", 4}},
|
||||||
energy_required = 40,
|
energy_required = 40,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
data.raw.item["coke"] and {"coke", 8} or {"coal", 16},
|
data.raw.item["coke"] and {"coke", 8} or {"coal", 16},
|
||||||
|
util.me.sinter() and {type = "item", name = "tungsten-powder", amount = 15} or
|
||||||
{type = "fluid", name = "molten-tungsten", amount = 375},
|
{type = "fluid", name = "molten-tungsten", amount = 375},
|
||||||
},
|
},
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
|
@ -131,6 +160,7 @@ if string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "molten-tungsten"})
|
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "molten-tungsten"})
|
||||||
|
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-powder"})
|
||||||
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-ingot"})
|
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-ingot-to-plate"})
|
||||||
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-carbide-casting"})
|
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-carbide-casting"})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue