1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00
This commit is contained in:
MewMew 2020-05-11 17:54:55 +02:00
parent c3af9b92db
commit b42220bc5b

View File

@ -221,7 +221,14 @@ local function hidden_biter(entity)
local surface = entity.surface
local h = math_floor(math_abs(entity.position.y))
local m = 1 / level_depth
local count = math_floor(math_random(0, h + level_depth) * m) + 1
local count = 64
for _ = 1, 2, 1 do
local c = math_floor(math_random(0, h + level_depth) * m) + 1
if c < count then count = c end
game.print(count)
end
local position = surface.find_non_colliding_position("small-biter", entity.position, 16, 0.5)
if not position then position = entity.position end