mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-04 00:15:45 +02:00
35 lines
1.1 KiB
Lua
35 lines
1.1 KiB
Lua
local Public = {}
|
|
|
|
local scrapable = {
|
|
-- simple entity
|
|
['small-ship-wreck'] = true,
|
|
['medium-ship-wreck'] = true,
|
|
-- simple entity with owner
|
|
['crash-site-spaceship-wreck-small-1'] = true,
|
|
['crash-site-spaceship-wreck-small-2'] = true,
|
|
['crash-site-spaceship-wreck-small-3'] = true,
|
|
['crash-site-spaceship-wreck-small-4'] = true,
|
|
['crash-site-spaceship-wreck-small-5'] = true,
|
|
['crash-site-spaceship-wreck-small-6'] = true,
|
|
['big-ship-wreck-1'] = true,
|
|
['big-ship-wreck-2'] = true,
|
|
['big-ship-wreck-3'] = true,
|
|
['crash-site-chest-1'] = true,
|
|
['crash-site-chest-2'] = true,
|
|
['crash-site-spaceship-wreck-medium-1'] = true,
|
|
['crash-site-spaceship-wreck-medium-2'] = true,
|
|
['crash-site-spaceship-wreck-medium-3'] = true,
|
|
['crash-site-spaceship-wreck-big-1'] = true,
|
|
['crash-site-spaceship-wreck-big-2'] = true,
|
|
['crash-site-spaceship'] = true
|
|
}
|
|
|
|
function Public.is_scrap(entity)
|
|
if not entity.valid then
|
|
return false
|
|
end
|
|
return scrapable[entity.name] or false
|
|
end
|
|
|
|
return Public
|