forked from cacklingfiend/bzgold2
Fix K2 matter to silver only when bzgold-silver setting is is enabled
This commit is contained in:
parent
b91b89e109
commit
4b691d654c
1 changed files with 15 additions and 14 deletions
|
|
@ -12,19 +12,20 @@ if mods["Krastorio2"] then
|
||||||
needs_stabilizer = false,
|
needs_stabilizer = false,
|
||||||
unlocked_by = "gold-matter-processing",
|
unlocked_by = "gold-matter-processing",
|
||||||
},
|
},
|
||||||
icon = {icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 0.5}
|
icon = { icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 0.5 },
|
||||||
|
})
|
||||||
|
end
|
||||||
|
if settings["bzgold-silver"].value then
|
||||||
|
util.k2matter({
|
||||||
|
k2matter = {
|
||||||
|
material = { type = "item", name = "silver-ore", amount = 8 },
|
||||||
|
item_name = "silver-ore",
|
||||||
|
matter_count = 8,
|
||||||
|
energy_required = 5,
|
||||||
|
needs_stabilizer = false,
|
||||||
|
unlocked_by = "silver-matter-processing",
|
||||||
|
},
|
||||||
|
icon = { icon = "__bzgold2__/graphics/icons/silver-ore.png", icon_size = 128, scale = 0.5 },
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
util.k2matter({
|
|
||||||
k2matter = {
|
|
||||||
material = { type = "item", name = "silver-ore", amount = 8 },
|
|
||||||
item_name = "silver-ore",
|
|
||||||
matter_count = 8,
|
|
||||||
energy_required = 5,
|
|
||||||
needs_stabilizer = false,
|
|
||||||
unlocked_by = "silver-matter-processing",
|
|
||||||
},
|
|
||||||
icon = {icon = "__bzgold2__/graphics/icons/silver-ore.png", icon_size = 128, scale = 0.5}
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue