Skip to content

WorkersPer beta ​

TypeAlias of @v12-engine/engine/ai

ts
export type WorkersPer = Partial<Record<ResourceId, number>> | ((ai: Brain, base: Base, index: number) => Partial<Record<ResourceId, number>>);

How many workers a base wants on each resource (EconomyOptions.workersPer): as numbers by resource id, or a function of the base (index 0 is home)