AbilityTextContext beta
Interface of @v12-engine/engine
ts
export interface AbilityTextContextWhat the text of an ability is worked out from: the ability at a level, its caster, and the buffs it puts on
Members
ability
ts
ability: AbilityDef;The ability the text is worked out for
buff
ts
buff?: (id: string) => BuffDef | undefined;A buff by id, for how long the ones the ability puts on last
caster
ts
caster: CasterFacts;What the caster brings to the ability's numbers: its stats, hero level and own attack damage
level
ts
level: number;The level of the ability: 1 for one that has no levels
value
ts
value(name: string): AbilityValue | undefined;A value of the ability, by name, worked out (see abilityValues)