Skip to content

hire beta ​

Function of @v12-engine/engine

ts
export declare function hire(world: World, shop: Entity, unit: string, player: PlayerId): Entity | undefined;

Hires a unit at a place that hires for a player: a tavern's hero, a dock's boat. Paid for, and made next to the place, a boat on the water nearest it. The unit, or nothing with the player told why