mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-08 00:39:30 +02:00
tweak
This commit is contained in:
parent
c3af9b92db
commit
b42220bc5b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user