Factorio Prototype DocsVersion 1.1.107

DamageTypeFilters :: struct or DamageTypeID or array[DamageTypeID] Example code

Properties

types :: DamageTypeID or array[DamageTypeID]

The damage types to filter for.

The damage types to filter for.

whitelist optional :: bool

Whether this is a whitelist or a blacklist of damage types. [...]

Whether this is a whitelist or a blacklist of damage types. [...]

Properties

types :: DamageTypeID or array[DamageTypeID]

The damage types to filter for.

whitelist :: bool optional

Default: false

Whether this is a whitelist or a blacklist of damage types. Defaults to being a blacklist.

Examples

damage_type_filters = "fire"
damage_type_filters = { "fire" } -- more damage types could be specified here
damage_type_filters =
{
  whitelist = false, -- optional
  types = "fire"
}
damage_type_filters =
{
  whitelist = false, -- optional
  types = { "fire" } -- more damage types could be specified here
}

Prototypes

Types