HeroPlan beta
Interface of @v12-engine/engine/ai
ts
export interface HeroPlanA hero the brain means to have (MicroOptions.heroes): which, what it learns in what order, what it buys
Members
chance
ts
chance?: number;The chance it is made at all, 0 to 1 (1 when left out): rolled once, with the brain's numbers, and remembered
items
ts
items?: ShoppingItem[];What it shops for, in place of the brain's shopping
skills
ts
skills?: string[] | ((ai: Brain, hero: EntityState, learnable: readonly LearnableInfo[]) => string | undefined);The order its skills are learned in, each level a line (['stomp', 'holyLight', 'stomp', …]); past the end, or left out, the ultimate as soon as it can be had and then whatever is furthest behind. Or a function: the skill to learn next of those it may, by id
type
ts
type: string;The hero's unit type