1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/map_gen/maps/danger_ores/modules/helper.lua

14 lines
256 B
Lua
Raw Normal View History

2021-04-16 21:48:32 +02:00
local Public = {}
function Public.split_ore(ores, split_count)
local new_ores = {}
for _ = 1, split_count do
for _, ore in pairs(ores) do
new_ores[#new_ores + 1] = ore
end
end
return new_ores
end
return Public