mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 13:01:39 +09:00
Paths under entities are more likly
This commit is contained in:
@@ -123,7 +123,7 @@ Event.register(defines.events.on_built_entity, function(event)
|
|||||||
for (x in 0,size) do for (y in 0,size) do
|
for (x in 0,size) do for (y in 0,size) do
|
||||||
local pos = [entity.position.x+x,entity.position.y+y]
|
local pos = [entity.position.x+x,entity.position.y+y]
|
||||||
local tile = surface.get_tile(pos).name
|
local tile = surface.get_tile(pos).name
|
||||||
if math.random() < paths[tile]*size then
|
if math.random() < paths[tile]*size*10 then
|
||||||
down_grade(surface,pos)
|
down_grade(surface,pos)
|
||||||
end
|
end
|
||||||
end end
|
end end
|
||||||
|
|||||||
Reference in New Issue
Block a user