unlocked beta
Function of @v12-engine/engine
ts
export declare function unlocked(world: World, player: PlayerId, kind: 'unit' | 'upgrade', id: string, requires: string[] | undefined, level?: number): boolean;Checks that something is the player's to make at all (isAvailable: their race, the available hook), then what it requires, by unlockRefusal, and tells the player what stands in the way. True when nothing does