1 line
6.5 KiB
JavaScript
1 line
6.5 KiB
JavaScript
import{_ as e,c as a,o as r,N as t}from"./chunks/framework.0799945b.js";const u=JSON.parse('{"title":"Interface: Modifier","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/game/modifiers.Modifier.md","lastUpdated":null}'),o={name:"api/interfaces/game/modifiers.Modifier.md"},i=t('<h1 id="interface-modifier" tabindex="-1">Interface: Modifier <a class="header-anchor" href="#interface-modifier" aria-label="Permalink to "Interface: Modifier""></a></h1><p><a href="./../../modules/game/modifiers">game/modifiers</a>.Modifier</p><p>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 <a href="./../../modules/game/modifiers#createmodifiersection">createModifierSection</a>.</p><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to "Properties""></a></h2><h3 id="apply" tabindex="-1">apply <a class="header-anchor" href="#apply" aria-label="Permalink to "apply""></a></h3><p>• <strong>apply</strong>: (<code>gain</code>: <a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a>) => <a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a></p><h4 id="type-declaration" tabindex="-1">Type declaration <a class="header-anchor" href="#type-declaration" aria-label="Permalink to "Type declaration""></a></h4><p>▸ (<code>gain</code>): <a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a></p><p>Applies some operation on the input and returns the result.</p><h5 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to "Parameters""></a></h5><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>gain</code></td><td style="text-align:left;"><a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a></td></tr></tbody></table><h5 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to "Returns""></a></h5><p><a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a></p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/modifiers.tsx#L22" target="_blank" rel="noreferrer">profectus/src/game/modifiers.tsx:22</a></p><hr><h3 id="description" tabindex="-1">description <a class="header-anchor" href="#description" aria-label="Permalink to "description""></a></h3><p>• <code>Optional</code> <strong>description</strong>: <a href="./../../modules/util/computed#processedcomputable"><code>ProcessedComputable</code></a><<a href="./../../modules/features/feature#coercablecomponent"><code>CoercableComponent</code></a>></p><p>A description of this modifier.</p><p><strong><code>See</code></strong></p><p><a href="./../../modules/game/modifiers#createmodifiersection">createModifierSection</a>.</p><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/modifiers.tsx#L34" target="_blank" rel="noreferrer">profectus/src/game/modifiers.tsx:34</a></p><hr><h3 id="enabled" tabindex="-1">enabled <a class="header-anchor" href="#enabled" aria-label="Permalink to "enabled""></a></h3><p>• <code>Optional</code> <strong>enabled</strong>: <a href="./../../modules/util/computed#processedcomputable"><code>ProcessedComputable</code></a><<code>boolean</code>></p><p>Whether or not this modifier should be considered enabled. Typically for use with modifiers passed into <a href="./../../modules/game/modifiers#createsequentialmodifier">createSequentialModifier</a>.</p><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/modifiers.tsx#L29" target="_blank" rel="noreferrer">profectus/src/game/modifiers.tsx:29</a></p><hr><h3 id="revert" tabindex="-1">revert <a class="header-anchor" href="#revert" aria-label="Permalink to "revert""></a></h3><p>• <code>Optional</code> <strong>revert</strong>: (<code>gain</code>: <a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a>) => <a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a></p><h4 id="type-declaration-1" tabindex="-1">Type declaration <a class="header-anchor" href="#type-declaration-1" aria-label="Permalink to "Type declaration""></a></h4><p>▸ (<code>gain</code>): <a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a></p><p>Reverses the operation applied by the apply property. Required by some features.</p><h5 id="parameters-1" tabindex="-1">Parameters <a class="header-anchor" href="#parameters-1" aria-label="Permalink to "Parameters""></a></h5><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>gain</code></td><td style="text-align:left;"><a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a></td></tr></tbody></table><h5 id="returns-1" tabindex="-1">Returns <a class="header-anchor" href="#returns-1" aria-label="Permalink to "Returns""></a></h5><p><a href="./../../modules/lib/break_eternity#decimalsource"><code>DecimalSource</code></a></p><h4 id="defined-in-3" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-3" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/modifiers.tsx#L24" target="_blank" rel="noreferrer">profectus/src/game/modifiers.tsx:24</a></p>',41),d=[i];function n(c,s,l,h,f,p){return r(),a("div",null,d)}const b=e(o,[["render",n]]);export{u as __pageData,b as default};
|