Synaptic assembler

by snouz

The synaptic assembler is a balanced building to craft specific recipes very efficiently.

Content
2 months ago
2.0
2.79K
Factorio: Space Age Icon Space Age Mod
Manufacturing

g [Suggestion] Use additional_categories instead of category

16 days ago
(updated 15 days ago)

Hello Snouz,

I noticed that this mod (or possibly Panglia, I can’t quite remember) overwrite the item categories that can be crafted in this assembler (old_category_or_thinking_brain). I did something similar in my mod (special assemblers for ammunition and equipment), but recently I noticed an interesting attribute in the documentation:

additional_categories - With this attribute, you can add additional categories without modifying the main one. It works very nice.

Just a quick loop through the recipe list and the job’s done :)

for _, recipe_name in pairs(equipment_recipes) do
local recipe = data.raw.recipe[recipe_name]
if recipe then
recipe.additional_categories = recipe.additional_categories or {}
table.insert(recipe.additional_categories, "equipment-crafting")
end
end

New response