Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# DamageTypeFilters - Prototype Docs

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

## Properties

- default
- sorted

types | :: DamageTypeID or array[DamageTypeID] | The damage types to filter for.
The damage types to filter for.
whitelist optional | :: boolean | Whether this is a whitelist or a blacklist of damage types. [...]
Whether this is a whitelist or a blacklist of damage types. [...]

types | :: DamageTypeID or array[DamageTypeID] | The damage types to filter for.
The damage types to filter for.
whitelist optional | :: boolean | 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 :: boolean 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
    }

Type used in

- TriggerEffectItem::damage_type_filters