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:
parent
0a4355eb2c
commit
98b39b93bf
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user