CarriedItem beta
Interface of @v12-engine/engine
ts
export interface CarriedItemSomething a unit carries
Members
charges
ts
charges: number;Uses left of the item
cooldown
ts
cooldown: number;Seconds until it can be used again
id
ts
id: number;Which one of the unit's items, for commands
item
ts
item: string;The item type's id
uses
ts
uses?: number;Uses left of the ability it casts, where that has charges (AbilityDef.charges) and holds fewer than it can: all of them when left out. None, and it cannot be used until one comes back