trainRefusal beta
Function of @v12-engine/engine
ts
export declare function trainRefusal(registry: Registry, def: UnitTypeDef, player: PlayerFacts, options?: {
cost?: boolean;
tech?: boolean;
}): Message | undefined;Why a player cannot have a unit made, or undefined when they can, as far as they and the unit type go: whether the building has room, and what a game's hooks say (they can change the cost), is for the simulation. In the order the player is told