Skip to content

Profectus / game/requirements / createBooleanRequirement

Function: createBooleanRequirement() ​

createBooleanRequirement(requirement, display?): Requirement

Creates a requirement based on a true/false value

Parameters ​

requirement ​

MaybeRefOrGetter<boolean>

The boolean requirement to use

display? ​

MaybeGetter<Renderable>

How to display this requirement to the user

Returns ​

Requirement

Defined in ​

profectus/src/game/requirements.tsx:263