forked from brevven/tungsten
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathme.lua
More file actions
38 lines (31 loc) · 929 Bytes
/
me.lua
File metadata and controls
38 lines (31 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
local me = {}
me.name = "bztungsten"
me.tungsten_ore = "tungsten-ore"
me.tungsten_plate = "tungsten-plate"
me.tungsten_carbide_recipe = "tungsten-carbide"
me.tungsten_processing = "tungsten-processing"
if mods.bobplates then
me.tungsten_processing = "bz-tungsten-processing"
me.tungsten_carbide_recipe = "bz-tungsten-carbide"
end
function me.fluid_amount()
if mods["Krastorio2"] then
local amt = me.get_setting("bztungsten-mining-fluid-amount-k2")
return amt and amt or 1
end
local amt = me.get_setting("bztungsten-mining-fluid-amount")
return amt and amt or 10
end
function me.get_setting(name)
if settings.startup[name] == nil then
return nil
end
return settings.startup[name].value
end
me.bypass = {}
if me.get_setting(me.name.."-recipe-bypass") then
for recipe in string.gmatch(me.get_setting(me.name.."-recipe-bypass"), '[^",%s]+') do
me.bypass[recipe] = true
end
end
return me