Home

ItemWithInventoryPrototype

The inventory allows setting player defined filters similar to cargo wagon inventories.

Parent

Properties

inventory_size

The inventory size of the item.

item_filters

A list of explicit item names to be used as filters.

Examples

item_filters = {"iron-ore", "copper-ore", "coal", "stone"}

item_group_filters

A list of explicit item group names to be used as filters.

Examples

item_group_filters = {"logistics", "fluids"}

item_subgroup_filters

A list of explicit item subgroup names to be used as filters.

Examples

item_subgroup_filters = {"military-equipment", "tool"}

filter_mode

This determines how filters are applied. If no filters are defined this is automatically set to "none".

Examples

filter_mode = "blacklist"

filter_message_key

The locale key used when the player attempts to put an item that doesn't match the filter rules into the item-with-inventory.

stack_size

Count of items of the same name that can be stored in one inventory slot. Must be 1 when the "not-stackable" flag is set.

Examples

stack_size = 1