Skip to content

Profectus / features/conversion / createCanConvertRequirement

Function: createCanConvertRequirement() ​

createCanConvertRequirement(conversion, minGainAmount, display?): Requirement

Creates requirement that is met when the conversion hits a specified gain amount

Parameters ​

conversion ​

Conversion

The conversion to check the gain amount of

minGainAmount ​

MaybeRefOrGetter<DecimalSource> = 1

The minimum gain amount that must be met for the requirement to be met

display? ​

MaybeGetter<Renderable>

Returns ​

Requirement

Defined in ​

profectus/src/features/conversion.ts:310