1
0
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:
hanakocz 2020-02-14 21:10:10 +01:00 committed by GitHub
parent 14dc28132f
commit deb10ccfa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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