Skip to content

useDefaults beta ​

Function of @v12-engine/engine

ts
export declare function useDefaults(rules: Rules, sets: readonly DefaultSet[], choices?: Readonly<Record<string, AnySetChoice>>): Rules;

The game with default sets taken, as it chooses of each (SetChoice, all of a set it says nothing of): their definitions in the fields of the rules they go in, after the game's own, one of the game's with the id of one of a set's in that one's place; what they use besides (SetUses); the packs they need, where the game has none of their id. Kept with the rules (Rules.defaults), so that its data.json can choose again (layData), and so that calling it again chooses again: useDefaults(game, [], { items: 'none' }). The game given is not changed

ts
export const game = layData(useDefaults(rules, [defaultItemSet], { items: { except: ['sightWard'] } }), dataFile)