k2 mining fluid

This commit is contained in:
Brevven 2023-03-24 09:16:01 -07:00
parent 24e5951513
commit 9ecb1b93b3
6 changed files with 61 additions and 29 deletions

View file

@ -32,35 +32,50 @@ data:extend({
hidden = not not (mods.Krastorio2 or mods.bzfoundry),
order = "aea",
},
{
type = "bool-setting",
name = "bztungsten-starting-patch",
setting_type = "startup",
default_value = false,
allowed_values = {"yes", "no"},
hidden = not not mods.Krastorio2,
order = "afa",
},
mods["Krastorio2"] and
{
type = "int-setting",
name = "bztungsten-mining-fluid-amount-k2",
setting_type = "startup",
default_value = 1,
minimum_value = 1,
maximum_value = 1000,
order = "aga",
} or {
type = "int-setting",
name = "bztungsten-mining-fluid-amount",
setting_type = "startup",
default_value = 10,
minimum_value = 1,
maximum_value = 1000,
order = "aga",
},
})
if mods.Krastorio2 then
data:extend({
{
type = "string-setting",
name = "bztungsten-mining-fluid-k2",
setting_type = "startup",
default_value = "mineral-water",
allowed_values = {"mineral-water", "water"},
order = "aga",
},
{
type = "int-setting",
name = "bztungsten-mining-fluid-amount-k2",
setting_type = "startup",
default_value = 1,
minimum_value = 1,
maximum_value = 1000,
order = "agb",
},
})
else
data:extend({
{
type = "bool-setting",
name = "bztungsten-starting-patch",
setting_type = "startup",
default_value = false,
hidden = not not mods.Krastorio2,
order = "afa",
},
{
type = "int-setting",
name = "bztungsten-mining-fluid-amount",
setting_type = "startup",
default_value = 10,
minimum_value = 1,
maximum_value = 1000,
order = "aga",
},
})
end
if mods["space-exploration"] and string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
data:extend({
{