Fixed recipe names, enhanced a recipe icon, updated the readme #1

Open
Hraukr wants to merge 9 commits from Hraukr/IntermediatesForYou2:main into main
Showing only changes of commit d7be28e94f - Show all commits

View file

@ -203,7 +203,7 @@ if mods["bzfoundry2"] and data.raw.item["bronze-plate"] then
or data.raw.item["bronze-plate"].icons and data.raw.item["bronze-plate"].icons[1].icon
local bronze_plate_icon_size = data.raw.item["bronze-plate"].icon_size
or data.raw.item["bronze-plate"].icons and data.raw.item["bronze-plate"].icons[1].icon_size

You could use data.raw.item["bronze-plate"].icon or data.raw.item["bronze-plate"].icons and data.raw.item["bronze-plate"].icons[1] (maybe make the item a variable) to be a bit more generic.

You could use `data.raw.item["bronze-plate"].icon or data.raw.item["bronze-plate"].icons and data.raw.item["bronze-plate"].icons[1]` (maybe make the item a variable) to be a bit more generic.

The bronze-spring recipe has been updated to use any existing bronze-spring item icon. Plus a few other changes.

The bronze-spring recipe has been updated to use any existing bronze-spring item icon. Plus a few other changes.
data:extend({
data:extend({
{
type = "recipe",
name = "bronze-spring",
@ -222,27 +222,27 @@ data:extend({
ingredients = {{type="item", name="bronze-plate", amount=1}},
results = {{type="item", name="spring", amount=2}},
}
})
})
util.add_unlock("foundry", "bronze-spring")
end
if mods["ThemTharHills-Updated"] then
local low_quality_advanced_circuit_ingredients = {{type="item", name="copper-cable", amount=3}, {type="item", name="electronic-circuit", amount=3}}
if data.raw.item["solder"] then
local low_quality_advanced_circuit_ingredients = {{type="item", name="copper-cable", amount=3}, {type="item", name="electronic-circuit", amount=3}}
if data.raw.item["solder"] then
table.insert(low_quality_advanced_circuit_ingredients, {type="item", name="solder", amount=4})
end
if data.raw.item["kr-electronic-components"] then
end
if data.raw.item["kr-electronic-components"] then
table.insert(low_quality_advanced_circuit_ingredients, {type="item", name="kr-electronic-components", amount=2})
end
if data.raw.item["circuit-board"] then
end
if data.raw.item["circuit-board"] then
table.insert(low_quality_advanced_circuit_ingredients, {type="item", name="circuit-board", amount=1})
end
local low_quality_advanced_circuit_results = {{ type = "item", name = "advanced-circuit", amount=1, probability=0.75}}
if mods["space-exploration"] then
end
local low_quality_advanced_circuit_results = {{ type = "item", name = "advanced-circuit", amount=1, probability=0.75}}
if mods["space-exploration"] then
table.insert(low_quality_advanced_circuit_results, { type = "item", name = "se-scrap", amount=1, probability=0.25})
end
end
data:extend({
data:extend({
{
type = "recipe",
name = "low-quality-advanced-circuit",
@ -262,8 +262,8 @@ data:extend({
ingredients = low_quality_advanced_circuit_ingredients,
results = low_quality_advanced_circuit_results,
}
})
util.add_unlock("advanced-circuit", "low-quality-advanced-circuit")
})
util.add_unlock("advanced-circuit", "low-quality-advanced-circuit")
end
if mods["aai-industry"] or mods["Krastorio2"] then