Code: Select all
prototypes[#prototypes + 1] = {
type = 'recipe',
name = species.name .. '-larva-' .. i,
energy_required = 2,
ingredients = {{type = 'item', name = species.name .. '-queen-' .. i, amount = 1}},
results = results,
main_product = species.name .. '-larva',
category = 'larva-hatching',
enabled = false,
hidden = true
}
Is there a way to specify looking for text regardless of placement in the resulting recipe name? Or another method to reference it?