Bio industriest crushed stone setting
This commit is contained in:
parent
8585196150
commit
99e8b97075
6 changed files with 21 additions and 3 deletions
|
|
@ -1,4 +1,10 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.6.7
|
||||
Date: 2021-04-11
|
||||
Changes:
|
||||
- Added experimental setting to not use crushed stone with Bio Industries.
|
||||
This is meant only for massive megabases, and is not recommended otherwise.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.6.6
|
||||
Date: 2021-03-20
|
||||
Changes:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bzsilicon",
|
||||
"version": "0.6.6",
|
||||
"version": "0.6.7",
|
||||
"factorio_version": "1.1",
|
||||
"title": "Silica & Silicon",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ optical-fiber=__ITEM__optical-fiber__
|
|||
|
||||
[mod-setting-name]
|
||||
bzsilicon-more-intermediates=Enable more intermediate recipes such as silicon wafers.
|
||||
bzsilicon-bio-crushed-stone=When using Bio Industries, use crushed stone to make silica.
|
||||
|
||||
[mod-setting-description]
|
||||
bzsilicon-more-intermediates=More complex production chains. Optional in vanilla, Krastorio 2, etc. [color=red]Required for Bio Industries.[/color]
|
||||
bzsilicon-more-intermediates=More complex production chains. Optional in vanilla, Krastorio 2, etc. [color=red]Required for Bio Industries.[/color]
|
||||
bzsilicon-bio-crushed-stone=This setting is experimental, and may be removed in a future update. It's strongly recommended to keep it enabled. Only disable if your UPS is dropping due to inserter count. Added per user request.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ data:extend(
|
|||
ingredients = {{"quartz", 10}},
|
||||
result = "silica",
|
||||
result_count = 30
|
||||
} or mods["Bio_Industries"] and {
|
||||
} or util.use_bio_crushed_stone() and {
|
||||
type = "recipe",
|
||||
name = "silica",
|
||||
category = "smelting",
|
||||
|
|
|
|||
|
|
@ -7,4 +7,10 @@ data:extend(
|
|||
default_value = "no",
|
||||
allowed_values = {"yes", "no"},
|
||||
},
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "bzsilicon-bio-crushed-stone",
|
||||
setting_type = "startup",
|
||||
default_value = true,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
4
util.lua
4
util.lua
|
|
@ -13,6 +13,10 @@ function util.more_intermediates()
|
|||
return mods["Bio_Industries"] or util.get_setting("bzsilicon-more-intermediates") == "yes"
|
||||
end
|
||||
|
||||
function util.use_bio_crushed_stone()
|
||||
return mods["Bio_Industries"] and util.get_setting("bzsilicon-bio-crushed-stone") == true
|
||||
end
|
||||
|
||||
function util.get_stack_size(default)
|
||||
if mods["Krastorio2"] then
|
||||
size = tonumber(krastorio.general.getSafeSettingValue("kr-stack-size"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue