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 f42acf7e7e - Show all commits

View file

@ -196,6 +196,10 @@ util.add_unlock("rocket-silo","satellite-body")
util.add_unlock("fast-inserter", "shock-absorber") util.add_unlock("fast-inserter", "shock-absorber")
if mods["bzfoundry2"] and data.raw.item["bronze-plate"] then if mods["bzfoundry2"] and data.raw.item["bronze-plate"] then
local bronze_plate_icon = data.raw.item["bronze-plate"].icon
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
data:extend({ data:extend({
{ {
type = "recipe", type = "recipe",

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.
@ -205,7 +209,7 @@ data:extend({
icons = (mods["bztin2"] and icons = (mods["bztin2"] and
{ {
{ icon = "__IntermediatesForYou2__/graphics/icons/spring.png", icon_size = 64 }, { icon = "__IntermediatesForYou2__/graphics/icons/spring.png", icon_size = 64 },
{ icon = "__bztin2__/graphics/icons/bronze-plate.png", icon_size = 128, scale = 0.125, shift = { -8, -8 } }, { icon = bronze_plate_icon, icon_size = bronze_plate_icon_size, scale = 0.125, shift = { -8, -8 } }
} or { } or {
{ icon = "__IntermediatesForYou2__/graphics/icons/spring.png", icon_size = 128 } { icon = "__IntermediatesForYou2__/graphics/icons/spring.png", icon_size = 128 }
} }