stone sorting setting

This commit is contained in:
Brevven 2022-02-01 21:18:53 -08:00
parent 96cb349851
commit 94ad1f8af9
5 changed files with 21 additions and 0 deletions

View file

@ -1,4 +1,11 @@
---------------------------------------------------------------------------------------------------
Version: 0.5.5
Date: 2021-02-02
Changes:
- Zircon/stone sorting is now behind a setting, default off. It is no longer necessary for
original balance purposes. If you use these recipes, update your mod startup settings before
saving your game.
---------------------------------------------------------------------------------------------------
Version: 0.5.4
Date: 2021-01-31
Fixes:

View file

@ -54,9 +54,11 @@ dirty-water-filtration-zircon=Filter dirty water, giving zircon [item=zircon] an
[mod-setting-name]
bzzirconium-recipe-bypass=Bypass recipes
bzzirconium-enable-intermediates=Enable cermet
bzzirconium-enable-sorting=Enable stone sorting
[mod-setting-description]
bzzirconium-recipe-bypass=Skip modifying these recipes (comma-separated list).
bzzirconium-enable-intermediates=Enable cermet, an advanced intermediate made from ceramics and metals.
bzzirconium-enable-sorting=Enable "sorting" recipes to convert between zircon and stone. This is no longer as useful for burner phase as it used to be, but left as an option for certain map layouts or existing factories.
[string-mod-setting]
bzzirconium-enable-intermediates-lds=Yes, and __ITEM__cermet__ in __ITEM__low-density-structure__
bzzirconium-enable-intermediates-yes=Yes, but not in __ITEM__low-density-structure__

4
me.lua
View file

@ -10,6 +10,10 @@ function me.cermet_lds()
return me.get_setting("bzzirconium-enable-intermediates") == "lds"
end
function me.enable_sorting()
return me.get_setting("bzzirconium-enable-sorting")
end
function me.get_setting(name)
if settings.startup[name] == nil then
return nil

View file

@ -13,4 +13,10 @@ data:extend({
default_value = "lds",
allowed_values = {"lds", "yes", "no"},
},
{
type = "bool-setting",
name = "bzzirconium-enable-sorting",
setting_type = "startup",
default_value = false,
},
})

View file

@ -220,6 +220,7 @@ end
end
-- sorting
if util.me.enable_sorting() then
data:extend({
{
type = "recipe",
@ -258,6 +259,7 @@ data:extend({
}
}
})
end
-- Zirconium Tungstate, only if needed
if mods.bztungsten and (mods["Krastorio2"] or mods["space-exploration"]) then