advanced mod settings

This commit is contained in:
Brevven 2022-08-09 12:46:38 -07:00
parent e63d66ffae
commit 2aed15749e
4 changed files with 50 additions and 18 deletions

2
me.lua
View file

@ -3,10 +3,12 @@ me.name = "bzsilicon"
me.silicon_processing = mods["Krastorio2"] and "kr-silicon-processing" or "silicon-processing"
function me.use_gyros()
if me.get_setting("bz-all-intermediates") then return true end
return me.get_setting("bzsilicon-more-intermediates") == "more"
end
function me.more_intermediates()
if me.get_setting("bz-all-intermediates") then return true end
return mods["Bio_Industries"] or me.get_setting("bzsilicon-more-intermediates") == "yes" or me.use_gyros()
end