1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

changed entities allowed to bomb

This commit is contained in:
Valansch 2018-08-14 00:30:49 +02:00
parent cddc9240b2
commit dfab0ff1bd

View File

@ -75,16 +75,34 @@ local function item_not_sanctioned(item)
)
end
global.entities_allowed_to_bomb = {
["stone-wall"] = true,
["transport-belt"] = true,
["fast-transport-belt"] = true,
["express-transport-belt"] = true,
["construction-robot"] = true,
["player"] = true,
["gun-turret"] = true,
["laser-turret"] = true,
["flamethrower-turret"] = true,
["rail"] = true,
["rail-chain-signal"] = true,
["rail-signal"] = true,
["tile-ghost"] = true,
["entity-ghost"] = true,
["gate"] = true,
["electric-pole"] = true,
["small-electric-pole"] = true,
["medium-electric-pole"] = true,
["big-electric-pole"] = true,
["logistic-robot"] = true,
["defender"] = true,
["destroyer"] = true,
["distractor"] = true
}
local function entity_allowed_to_bomb(entity)
local name = entity.name
return (
name:find("turret") or
name:find("rail") or
name:find("ghost") or
name == "player" or
name == "stone-wall" or
entity.type == "electric-pole"
)
return global.entities_allowed_to_bomb[entity.name]
end
global.players_warned = {}
local function on_capsule_used(event)