@@ -22,19 +22,21 @@ local ores = {
22
22
[" rutile-ore" ] = {},
23
23
[" sulfur" ] = {},
24
24
[" thorium-ore" ] = {},
25
- -- ["tin-ore"] = {},
25
+ [" tin-ore" ] = {variations = 8 },
26
26
27
27
-- Shared with Angel's
28
- -- ["bauxite-ore"] = {mod = "lib", group = "shared"},
28
+ [" bauxite-ore" ] = {mod = " lib" , group = " shared" , variations = 8 },
29
29
[" cobalt-ore" ] = {mod = " lib" , group = " shared" },
30
30
[" gold-ore" ] = {mod = " lib" , group = " shared" },
31
31
[" nickel-ore" ] = {mod = " lib" , group = " shared" }, -- 408073
32
32
[" quartz" ] = {mod = " lib" , group = " shared" }, -- 999999
33
33
[" silver-ore" ] = {mod = " lib" , group = " shared" },
34
- -- ["tungsten-ore"] = {mod = "lib", group = "shared"},
34
+ [" tungsten-ore" ] = {mod = " lib" , group = " shared" , variations = 8 },
35
35
[" zinc-ore" ] = {mod = " lib" , group = " shared" },
36
36
}
37
37
38
+
39
+
38
40
for name , params in pairs (ores ) do
39
41
-- Fetch entity
40
42
local entity = data .raw [inputs .type ][name ]
@@ -52,12 +54,7 @@ for name, params in pairs(ores) do
52
54
inputs .icon_picture = nil
53
55
else
54
56
inputs .icon = reskins [mod ].directory .. " /graphics/icons/" .. group .. " /ores/" .. name .. " /" .. name .. " .png"
55
- inputs .icon_picture = {
56
- { size = 64 , filename = reskins [mod ].directory .. " /graphics/icons/" .. group .. " /ores/" .. name .. " /" .. name .. " .png" , scale = 0.25 , mipmap_count = 4 },
57
- { size = 64 , filename = reskins [mod ].directory .. " /graphics/icons/" .. group .. " /ores/" .. name .. " /" .. name .. " -1.png" , scale = 0.25 , mipmap_count = 4 },
58
- { size = 64 , filename = reskins [mod ].directory .. " /graphics/icons/" .. group .. " /ores/" .. name .. " /" .. name .. " -2.png" , scale = 0.25 , mipmap_count = 4 },
59
- { size = 64 , filename = reskins [mod ].directory .. " /graphics/icons/" .. group .. " /ores/" .. name .. " /" .. name .. " -3.png" , scale = 0.25 , mipmap_count = 4 }
60
- }
57
+ inputs .icon_picture = reskins .lib .ore_icon_pictures (mod , group , name , params .variations or 4 )
61
58
end
62
59
63
60
reskins .lib .assign_icons (name , inputs )
0 commit comments