1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

Updated corpse remover to remove worms.

This commit is contained in:
James Gillham 2021-01-12 16:51:30 +00:00
parent 0a4355eb2c
commit 98b39b93bf

View File

@ -17,19 +17,9 @@ Global.register(corpse_queue, function(tbl)
corpse_queue = tbl
end)
local enemy_units = {
['small-biter'] = true,
['medium-biter'] = true,
['big-biter'] = true,
['behemoth-biter'] = true,
['small-spitter'] = true,
['medium-spitter'] = true,
['big-spitter'] = true,
['behemoth-spitter'] = true
}
local function entity_died(event)
if not event.unit_number or not enemy_units[event.prototype.name] then
local prototype_type = event.prototype.type
if prototype_type ~= 'unit' and prototype_type ~= 'turret' then
return
end