Skip to content

Profectus / game/requirements / maxRequirementsMet

Function: maxRequirementsMet() ​

maxRequirementsMet(requirements): DecimalSource

Calculates the maximum number of levels that could be acquired with the current requirement states. True/false requirements will be counted as Infinity or 0.

Parameters ​

requirements ​

Requirements

The 1+ requirements to check

Returns ​

DecimalSource

Defined in ​

profectus/src/game/requirements.tsx:296