StrengthFormula beta
TypeAlias of @v12-engine/engine/ai
ts
export type StrengthFormula = (input: StrengthInput) => number;How strong a unit or a type is, as a number that adds up over a group: the kit's formula (defaultStrength), or a game's own in its place (AiOptions.strength, BrainDef.strength). Given the unit's definition and stats as they stand, the entity where there is one, and the health it has left as a part of its most. Must give a finite number, 0 for what does not fight