This commit is contained in:
Brevven 2023-01-16 23:15:06 -08:00
parent 4f72f53db1
commit a4ed97175c
2 changed files with 6 additions and 1 deletions

View file

@ -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]) if data.raw.recipe[recipe] and (data.raw.item[recipe] or data.raw.fluid[recipe])
and not eff_data[recipe] and and not eff_data[recipe] and
recipe ~= "alumina" and -- for some reason this does not work, despite having a main_product 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 (data.raw.recipe[recipe].main_product or util.get_result_count(recipe) == 1) then
eff_data[recipe] = { eff_data[recipe] = {
max = 15, max = 15,

View file

@ -23,6 +23,7 @@ data:extend({
{ {
type = "recipe", type = "recipe",
name = util.me.titanium_plate, name = util.me.titanium_plate,
main_product = util.me.titanium_plate,
category = "smelting", category = "smelting",
order = "d[titanium-plate]", order = "d[titanium-plate]",
icons = (mods["Krastorio2"] and icons = (mods["Krastorio2"] and
@ -35,7 +36,9 @@ data:extend({
enabled = false, enabled = false,
energy_required = 16, energy_required = 16,
ingredients = {{"titanium-ore", 10}}, 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 } or
{ {
enabled = false, enabled = false,