diff --git a/changelog.txt b/changelog.txt index 810c907..b78bbdf 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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: diff --git a/info.json b/info.json index a25fc2f..12d0c8d 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzsilicon", - "version": "0.6.6", + "version": "0.6.7", "factorio_version": "1.1", "title": "Silica & Silicon", "author": "Brevven", diff --git a/locale/en/silicon.cfg b/locale/en/silicon.cfg index 65d96ab..0088f12 100644 --- a/locale/en/silicon.cfg +++ b/locale/en/silicon.cfg @@ -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] \ No newline at end of file +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. diff --git a/prototypes/silica-recipe.lua b/prototypes/silica-recipe.lua index 6418f92..a68672c 100644 --- a/prototypes/silica-recipe.lua +++ b/prototypes/silica-recipe.lua @@ -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", diff --git a/settings.lua b/settings.lua index 8864bb1..ce84167 100644 --- a/settings.lua +++ b/settings.lua @@ -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, + }, }) diff --git a/util.lua b/util.lua index f7e75bf..6034fa1 100644 --- a/util.lua +++ b/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"))