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('
game/requirements.Requirement
An object that can be used to describe a requirement to perform some purchase or other action.
See
• 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.
profectus/src/game/requirements.tsx:53
• Optional
display: (amount?
: DecimalSource
) => Element
▸ (amount?
): Element
The display for this specific requirement. Required if visibility can be Visibility.Visible.
Name | Type |
---|---|
amount? | DecimalSource |
Element
profectus/src/game/requirements.tsx:37
• Optional
partialDisplay: (amount?
: DecimalSource
) => Element
▸ (amount?
): Element
The display for this specific requirement. This is used for displays multiple requirements condensed. Required if visibility can be Visibility.Visible.
Name | Type |
---|---|
amount? | DecimalSource |
Element
profectus/src/game/requirements.tsx:33
• Optional
pay: (amount?
: DecimalSource
) => void
▸ (amount?
): void
Perform any effects to the game state that should happen when the requirement gets triggered.
Name | Type | Description |
---|---|---|
amount? | DecimalSource | The amount of levels of requirements to pay for. |
void
profectus/src/game/requirements.tsx:58
• requirementMet: ProcessedComputable
<boolean
| DecimalSource
>
Whether or not this requirement has been met.
profectus/src/game/requirements.tsx:45
• requiresPay: ProcessedComputable
<boolean
>
Whether or not this requirement will need to affect the game state when whatever is using this requirement gets triggered.
profectus/src/game/requirements.tsx:49
• visibility: ProcessedComputable
<boolean
| Visible
| None
>
Whether or not this requirement should be displayed in Vue Features. displayRequirements will respect this property.