For those wanting more aggressive drill placement like me, you can edit the common.overfill_miner_placement
function in the layout/common.lua
file from this:
---@param miner MinerStruct
---@return HeuristicMinerPlacement
function common.overfill_miner_placement(miner)
local size, area = miner.size, miner.area
local neighbor_cap = (size/ 2) ^ 2 - 1
local leech = (area * 0.5) ^ 2 - 1
return function(tile)
return tile.neighbors_inner > 0 or tile.neighbors_outer > leech
end
end
To this:
---@param miner MinerStruct
---@return HeuristicMinerPlacement
function common.overfill_miner_placement(miner)
local size, area = miner.size, miner.area
local neighbor_cap = (size/ 2) ^ 2 - 1
local leech = (area * 0.5) ^ 2 - 1
return function(tile)
return true
end
end
I'm not familiar with Lua, but this seems to make the heuristic always place a drill if it can. I tested on a few differently sized ore patches and it does still miss a drill every now and then, but it places about 20-30 more drills than the default overfill pattern. It's possible this has side effects but it seems to work well for me and fits my use-case perfectly.