import{_ as e,c as r,o as a,a as t}from"./app.ab34650d.js";const u=JSON.parse('{"title":"Interface: Modifier","description":"","frontmatter":{"editLink":false},"headers":[{"level":2,"title":"Properties","slug":"properties"},{"level":3,"title":"apply","slug":"apply"},{"level":3,"title":"description","slug":"description"},{"level":3,"title":"enabled","slug":"enabled"},{"level":3,"title":"revert","slug":"revert"}],"relativePath":"api/interfaces/game/modifiers.Modifier.md","lastUpdated":null}'),i={name:"api/interfaces/game/modifiers.Modifier.md"},d=t('

Interface: Modifier

game/modifiers.Modifier

An object that can be used to apply or unapply some modification to a number. Being reversible requires the operation being invertible, but some features may rely on that. Descriptions can be optionally included for displaying them to the player. The built-in modifier creators are designed to display the modifiers using. createModifierSection.

Properties

apply

\u2022 apply: (gain: DecimalSource) => DecimalSource

Type declaration

\u25B8 (gain): DecimalSource

Applies some operation on the input and returns the result.

Parameters
NameType
gainDecimalSource
Returns

DecimalSource

Defined in

profectus/src/game/modifiers.tsx:21


description

\u2022 Optional description: ProcessedComputable<CoercableComponent>

A description of this modifier.

See

createModifierSection.

Defined in

profectus/src/game/modifiers.tsx:33


enabled

\u2022 Optional enabled: ProcessedComputable<boolean>

Whether or not this modifier should be considered enabled. Typically for use with modifiers passed into createSequentialModifier.

Defined in

profectus/src/game/modifiers.tsx:28


revert

\u2022 Optional revert: (gain: DecimalSource) => DecimalSource

Type declaration

\u25B8 (gain): DecimalSource

Reverses the operation applied by the apply property. Required by some features.

Parameters
NameType
gainDecimalSource
Returns

DecimalSource

Defined in

profectus/src/game/modifiers.tsx:23

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