fluid setting
This commit is contained in:
parent
9e83776f5e
commit
c0eb0397f0
5 changed files with 21 additions and 4 deletions
|
|
@ -1,7 +1,8 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.12.3
|
||||
Date: 2021-07-06
|
||||
Date: 2021-07-12
|
||||
Features:
|
||||
- Setting for fluid amount
|
||||
- Useful Eqipment compatibility
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.12.2
|
||||
|
|
|
|||
|
|
@ -39,6 +39,12 @@ function util.get_setting(name)
|
|||
return settings.startup[name].value
|
||||
end
|
||||
|
||||
function util.fluid_amount()
|
||||
local amt = util.get_setting("bztitanium-mining-fluid-amount")
|
||||
return amt and amt or 3
|
||||
end
|
||||
|
||||
|
||||
local bypass = {}
|
||||
if util.get_setting(util.name.."-recipe-bypass") then
|
||||
for recipe in string.gmatch(util.get_setting(util.name.."-recipe-bypass"), '[^",%s]+') do
|
||||
|
|
|
|||
|
|
@ -38,11 +38,13 @@ dirty-water-filtration-titanium=Filter dirty water, giving titanium ore [item=ti
|
|||
|
||||
[mod-setting-name]
|
||||
bztitanium-recipe-bypass=Bypass recipes
|
||||
bztitanium-mining-fluid=Experimental: Titanium mining fluid
|
||||
bztitanium-mining-fluid=Titanium mining fluid
|
||||
bztitanium-mining-fluid-amount=Titanium mining fluid amount
|
||||
|
||||
[mod-setting-description]
|
||||
bztitanium-recipe-bypass=Skip modifying these recipes (comma-separated list).
|
||||
bztitanium-mining-fluid=Choose which fluid to use when mining Titanium.\n[color=orange]Lubricant is recommended![/color]\n[color=red]This setting is experimental and might not be compatible.[/color]
|
||||
bztitanium-mining-fluid=Choose which fluid to use when mining Titanium.\n[color=orange]Lubricant is recommended![/color]
|
||||
bztitanium-mining-fluid-amount=Amount of fluid used to mine. Default 3.
|
||||
[string-mod-setting]
|
||||
bztitanium-mining-fluid-lubricant=Lubricant
|
||||
bztitanium-mining-fluid-sulfuric-acid=Sulfuric Acid
|
||||
|
|
|
|||
|
|
@ -13,4 +13,12 @@ data:extend({
|
|||
default_value = "lubricant",
|
||||
allowed_values = (mods["Krastorio2"] and {"lubricant", "sulfuric-acid", "chlorine"} or {"lubricant", "sulfuric-acid"}),
|
||||
},
|
||||
{
|
||||
type = "int-setting",
|
||||
name = "bztitanium-mining-fluid-amount",
|
||||
setting_type = "startup",
|
||||
default_value = 3,
|
||||
minimum_value = 1,
|
||||
maximum_value = 1000,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ data:extend({
|
|||
hardness = 1,
|
||||
mining_particle = "titanium-ore-particle",
|
||||
mining_time = 2,
|
||||
fluid_amount=3,
|
||||
fluid_amount = util.fluid_amount(),
|
||||
required_fluid=(settings.startup["bztitanium-mining-fluid"] and settings.startup["bztitanium-mining-fluid"].value or "lubricant"),
|
||||
result = "titanium-ore"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue