]> git.somenet.org - factorio/some-autoresearch.git/blob - data-final-fixes.lua
RELEASE 2.0.4 - Global storage should work again.
[factorio/some-autoresearch.git] / data-final-fixes.lua
1 -- dynamically add sprites for tools (to display research ingredients)
2 for _, tool in pairs(data.raw.tool) do
3     if tool.icon then
4         data:extend({
5             {
6                 type = "sprite",
7                 name = "auto_research_tool_" .. tool.name,
8                 filename = tool.icon or nil,
9                 priority = "extra-high-no-scale",
10                 width = tool.icon_size or 64,
11                 height = tool.icon_size or 64,
12                 scale = 64/(tool.icon_size or 64)
13             }
14         })
15     end
16 end