class Equipment: Component

Represents an equippable item that occupies one or more equipment slots and may apply a condition while equipped.

requiredCategories: table<string, integer>

Table of required slot categories and their quantities (e.g. { hand = 2 } for a two-handed weapon)

condition: Condition | nil

Optional condition applied when equipped

__new(
    self: Equipment,
    requiredCategories: string | string[],
    status?: Condition
)

Constructor for the Equipment component.

Parameters:
  • requiredCategories (string | string[]) – The slot or slots this equipment occupies.

  • status? (Condition) – Optional condition applied while equipped.