mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-17 20:58:13 +02:00
Update tick_tack_trap.lua
This commit is contained in:
parent
14dc28132f
commit
deb10ccfa1
@ -22,7 +22,7 @@ end
|
||||
|
||||
local function create_flying_text(surface, position, text)
|
||||
if not surface.valid then return end
|
||||
surface.create_entity({
|
||||
surface.create_entity({
|
||||
name = "flying-text",
|
||||
position = position,
|
||||
text = text,
|
||||
@ -34,7 +34,7 @@ end
|
||||
|
||||
local function create_kaboom(surface, position, name)
|
||||
if not surface.valid then return end
|
||||
local target = position
|
||||
local target = position
|
||||
local speed = 0.5
|
||||
if name == "defender-capsule" or name == "destroyer-capsule" or name == "distractor-capsule" then
|
||||
surface.create_entity({
|
||||
@ -58,7 +58,7 @@ end
|
||||
|
||||
local function tick_tack_trap(surface, position)
|
||||
if not surface then return end
|
||||
if not surface.valid then return end
|
||||
if not surface.valid then return end
|
||||
if not position then return end
|
||||
if not position.x then return end
|
||||
if not position.y then return end
|
||||
@ -87,4 +87,4 @@ local function tick_tack_trap(surface, position)
|
||||
end
|
||||
end
|
||||
|
||||
return tick_tack_trap
|
||||
return tick_tack_trap
|
||||
|
Loading…
x
Reference in New Issue
Block a user