data util once
This commit is contained in:
parent
bc59ca8d96
commit
9955fe7626
15 changed files with 39 additions and 13 deletions
|
|
@ -23,6 +23,27 @@ else
|
|||
util.titanium_processing = "titanium-processing"
|
||||
end
|
||||
|
||||
allbypass = {}
|
||||
log("BZZ" .. me.name)
|
||||
-- if get_setting("bz-recipe-bypass") then
|
||||
-- for recipe in string.gmatch(me.get_setting("bz-recipe-bypass"), '[^",%s]+') do
|
||||
-- allbypass[recipe] = true
|
||||
-- end
|
||||
-- end
|
||||
|
||||
function get_setting(name)
|
||||
if settings.startup[name] == nil then
|
||||
return nil
|
||||
end
|
||||
return settings.startup[name].value
|
||||
end
|
||||
|
||||
function bypass(recipe_name)
|
||||
if me.bypass[recipe_name] then return true end
|
||||
if allbypass[recipe_name] then return true end
|
||||
if get_setting("bz-tabula-rasa") then return true end
|
||||
end
|
||||
|
||||
function util.fe_plus(sub)
|
||||
if mods["FactorioExtended-Plus-"..sub] then
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue