import{_ as e,c as t,o as a,N as r}from"./chunks/framework.0799945b.js";const f=JSON.parse('{"title":"Interface: Requirement","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/game/requirements.Requirement.md","lastUpdated":null}'),i={name:"api/interfaces/game/requirements.Requirement.md"},o=r('

Interface: Requirement

game/requirements.Requirement

An object that can be used to describe a requirement to perform some purchase or other action.

See

createCostRequirement

Properties

canMaximize

Optional canMaximize: ProcessedComputable<boolean>

Whether or not this requirement can have multiple levels of requirements that can be met at once. Requirement is assumed to not have multiple levels if this property not present.

Defined in

profectus/src/game/requirements.tsx:53


display

Optional display: (amount?: DecimalSource) => Element

Type declaration

▸ (amount?): Element

The display for this specific requirement. Required if visibility can be Visibility.Visible.

Parameters
NameType
amount?DecimalSource
Returns

Element

Defined in

profectus/src/game/requirements.tsx:37


partialDisplay

Optional partialDisplay: (amount?: DecimalSource) => Element

Type declaration

▸ (amount?): Element

The display for this specific requirement. This is used for displays multiple requirements condensed. Required if visibility can be Visibility.Visible.

Parameters
NameType
amount?DecimalSource
Returns

Element

Defined in

profectus/src/game/requirements.tsx:33


pay

Optional pay: (amount?: DecimalSource) => void

Type declaration

▸ (amount?): void

Perform any effects to the game state that should happen when the requirement gets triggered.

Parameters
NameTypeDescription
amount?DecimalSourceThe amount of levels of requirements to pay for.
Returns

void

Defined in

profectus/src/game/requirements.tsx:58


requirementMet

requirementMet: ProcessedComputable<boolean | DecimalSource>

Whether or not this requirement has been met.

Defined in

profectus/src/game/requirements.tsx:45


requiresPay

requiresPay: ProcessedComputable<boolean>

Whether or not this requirement will need to affect the game state when whatever is using this requirement gets triggered.

Defined in

profectus/src/game/requirements.tsx:49


visibility

visibility: ProcessedComputable<boolean | Visible | None>

Whether or not this requirement should be displayed in Vue Features. displayRequirements will respect this property.

Defined in

profectus/src/game/requirements.tsx:41

',65),n=[o];function s(d,l,c,h,u,m){return a(),t("div",null,n)}const b=e(i,[["render",s]]);export{f as __pageData,b as default};