fix
This commit is contained in:
parent
4f72f53db1
commit
a4ed97175c
2 changed files with 6 additions and 1 deletions
|
|
@ -10,6 +10,8 @@ if mods["crafting-efficiency-2"] then
|
|||
if data.raw.recipe[recipe] and (data.raw.item[recipe] or data.raw.fluid[recipe])
|
||||
and not eff_data[recipe] and
|
||||
recipe ~= "alumina" and -- for some reason this does not work, despite having a main_product
|
||||
recipe ~= "phenol" and -- for some reason this does not work, despite having a main_product
|
||||
"enriched-" ~= string.sub(recipe, 1, string.len("enriched-")) and
|
||||
(data.raw.recipe[recipe].main_product or util.get_result_count(recipe) == 1) then
|
||||
eff_data[recipe] = {
|
||||
max = 15,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ data:extend({
|
|||
{
|
||||
type = "recipe",
|
||||
name = util.me.titanium_plate,
|
||||
main_product = util.me.titanium_plate,
|
||||
category = "smelting",
|
||||
order = "d[titanium-plate]",
|
||||
icons = (mods["Krastorio2"] and
|
||||
|
|
@ -35,7 +36,9 @@ data:extend({
|
|||
enabled = false,
|
||||
energy_required = 16,
|
||||
ingredients = {{"titanium-ore", 10}},
|
||||
results = {{type="item", name= util.me.titanium_plate, amount_min=2, amount_max=3}},
|
||||
results =
|
||||
mods["crafting-efficiency-2"] and {{type="item", name= util.me.titanium_plate, amount=3, probability=5/6}} or
|
||||
{{type="item", name= util.me.titanium_plate, amount_min=2, amount_max=3}} ,
|
||||
} or
|
||||
{
|
||||
enabled = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue