BuffInstance beta
Interface of @v12-engine/engine
ts
export interface BuffInstanceA buff on a unit: which, from what level, how long is left and who put it there
Members
ability
ts
ability?: string;The ability it came from, for buffs that do something when their time is up
data
ts
data?: Record<string, unknown>;State of the game's own about this one buff: a counter, what it has done so far. Plain data: it is saved
elapsed
ts
elapsed: number;Seconds the buff has been on
id
ts
id: string;The id of the buff
kept
ts
kept?: boolean;Kept up by an ability of its source's for as long as it holds (a passive's buff, an aura's): put on again every round for a moment, with no time of its own to show (EntityState.buffTimes says -1)
level
ts
level: number;Level of the ability it came from
remaining
ts
remaining: number;Seconds left. Infinity for buffs that stay
shield
ts
shield?: number;What is left of the shield it gives
source
ts
source: EntityId;Entity that put it there
stacks
ts
stacks?: number;How many of it there are, for buffs that pile up