[Request] ore patches merger
Posted: Thu Dec 21, 2017 7:11 pm
Basically I want to be able in game merger multiple infinite ore patches together of same type so that I have higher yield (hopefully non decaying) patches.
Code: Select all
data.raw.resource["crude-oil"].resource_patch_search_radius = 12
Code: Select all
for resource_name, resource_prototype in pairs (data.raw.resource) do
resource_prototype.resource_patch_search_radius = 12 -- or another radius what you will
end
Code: Select all
local entities = event.entities
local list = {}
local listFirst = {}
for _,entity in ipairs(entities) do
if entity.type == "resource" then