Fixed Remaing Bugs

This commit is contained in:
Cooldude2606
2018-10-13 17:50:22 +01:00
parent 438d81338a
commit 480353bcd4
8 changed files with 34 additions and 25 deletions

View File

@@ -82,7 +82,7 @@ script.on_event({defines.events.on_built_entity,on_robot_built_entity}, function
for x = box.left_top.x,box.right_bottom.x do for y = box.left_top.y,box.right_bottom.y do
local pos = {x=entity.position.x+x,y=entity.position.y+y}
local tile = surface.get_tile(pos).name
if paths[tile] and math.random() < paths[tile][1]*size/(-2) then
if paths[tile] and math.random() < paths[tile][1]*size*(-2) then
ThisModule.down_grade(surface,pos)
end
end end