Skip to content

techPath beta ​

Function of @v12-engine/engine/ai

ts
export declare function techPath(view: AiView, target: string, onItsWay?: (type: string) => boolean): TechPath;

The steps from what the player has to being able to make a type: what it requires that it lacks, each of those in turn, and the type's maker where it has none (the hall that trains the worker, the worker that builds the barracks, the hall that turns into the keep). What stands finished (view.me.tech, with what it counts as) or is on its way (onItsWay: under construction, a builder sent, a morph queued) is had already. A requirement no type has as its id is met by a type that provides it