EffectValue beta
TypeAlias of @v12-engine/engine
ts
export type EffectValue = Scaled | ((context: EffectValueContext, target?: Entity) => number);An amount, a time or a size of an effect: a number, one per level (Scaled), or worked out in code for each target as it lands ((context, target) => number: a share of what the target lacks, more for each mark on it, by how far it flew). Code is asked with no target where the effect is not for one (a zone's time, an area's size) and by the tooltip; what the screen draws before a cast (the aim) has no caster to ask, and takes AbilityDef.aim