Skip to content

Instantly share code, notes, and snippets.

@tuefekci
Created October 14, 2022 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuefekci/59f71d78e0a2e514e83d6681f8b7bc0a to your computer and use it in GitHub Desktop.
Save tuefekci/59f71d78e0a2e514e83d6681f8b7bc0a to your computer and use it in GitHub Desktop.
Factorio MoonLogic if red['signal-enemy-unit-spawner'] > 0 or red['signal-enemy-turret'] > 0 or red['signal-enemy-unit'] > 0 then
out = {}
local ressource = 0
if red['signal-enemy-unit-spawner'] > 0 or red['signal-enemy-turret'] > 0 or red['signal-enemy-unit'] > 0 then
ressource = 1
else
out['signal-x-tile'] = red['signal-x-tile']
out['signal-y-tile'] = red['signal-y-tile']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment