-
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)
-
__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.
Other members:
Inherited from
Component:applyDiff(),checkRequirements(),clone(),diff(),getBase(),getRequirements(),owner,requirementsInherited from
Object:_serializationBlacklist,adopt(),assertType(),className,deepcopy(),deserialize(),extend(),instanceOf(),is(),isInstance(),mixin(),prettyprint(),serializationBlacklist,serialize()-
requiredCategories: