import{_ase,cast,o,Nasa}from"./chunks/framework.0799945b.js";constm=JSON.parse('{"title":"Module: features/conversion","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/conversion.md","lastUpdated":null}'),r={name:"api/modules/features/conversion.md"},n=a('<h1id="module-features-conversion"tabindex="-1">Module:features/conversion<aclass="header-anchor"href="#module-features-conversion"aria-label="Permalink to "Module: features/conversion""></a></h1><h2id="interfaces"tabindex="-1">Interfaces<aclass="header-anchor"href="#interfaces"aria-label="Permalinkto"Interfaces""></a></h2><ul><li><ahref="../../interfaces/features/conversion.BaseConversion">BaseConversion</a></li><li><ahref="../../interfaces/features/conversion.ConversionOptions">ConversionOptions</a></li></ul><h2id="type-aliases"tabindex="-1">TypeAliases<aclass="header-anchor"href="#type-aliases"aria-label="Permalinkto"TypeAliases""></a></h2><h3id="conversion"tabindex="-1">Conversion<aclass="header-anchor"href="#conversion"aria-label="Permalinkto"Conversion""></a></h3><p>Ƭ<strong>Conversion</strong><<code>T</code>>:<ahref="./feature#replace"><code>Replace</code></a><<code>T</code>&<ahref="../../interfaces/features/conversion.BaseConversion"><code>BaseConversion</code></a>,{<code>actualGain</code>:<ahref="./../util/computed#getcomputabletypewithdefault"><code>GetComputableTypeWithDefault</code></a><<code>T</code>[<code>"actualGain"</code>],<code>Ref</code><<ahref="./../util/bignum#decimalsource"><code>DecimalSource</code></a>>>;<code>buyMax</code>:<ahref="./../util/computed#getcomputabletypewithdefault"><code>GetComputableTypeWithDefault</code></a><<code>T</code>[<code>"buyMax"</code>],<code>true</code>>;<code>currentAt</code>:<ahref="./../util/computed#getcomputabletypewithdefault"><code>GetComputableTypeWithDefault</code></a><<code>T</code>[<code>"currentAt"</code>],<code>Ref</code><<ahref="./../util/bignum#decimalsource"><code>DecimalSource</code></a>>>;<code>currentGain</code>:<ahref="./../util/computed#getcomputabletypewithdefault"><code>GetComputableTypeWithDefault</code></a><<code>T</code>[<code>"currentGain"</code>],<code>Ref</code><<ahref="./../util/bignum#decimalsource"><code>DecimalSource</code></a>>>;<code>formula</code>:<ahref="./../game/formulas/types#invertibleformula"><code>InvertibleFormula</code></a>;<code>nextAt</code>:<ahref="./../util/computed#getcomputabletypewithdefault"><code>GetComputableTypeWithDefault</code></a><<code>T</code>[<code>"nextAt"</code>],<code>Ref</code><<ahref="./../util/bignum#decimalsource"><code>DecimalSource</code></a>>>;<code>spend</code>:<code>undefined</code>extends<code>T</code>[<code>"spend"</code>]?(<code>amountGained</code>:<ahref="./../util/bignum#decimalsource"><code>DecimalSource</code></a>)=><code>void</code>:<code>T</code>[<code>"spend"</code>]}></p><p>Anobjectthatconvertsone<ahref="../../interfaces/features/resources/resource.Resource">Resource</a>intoanotheratagivenrate.</p><h4id="type-parameters"tabindex="-1">Typeparameters<aclass="header-anchor"href="#type-parameters"aria-label="Permalinkto"Typeparameters""></a></h4><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>T</code></td><tdstyle="text-align:left;">extends<ahref="../../interfaces/features/conversion.ConversionOptions"><code>ConversionOptions</code></a></td></tr></tbody></table><h4id="defined-in"tabindex="-1">Definedin<aclass="header-anchor"href="#defined-in"aria-label="Permalinkto"Definedin""></a></h4><p><ahref="https://github.com/profectus-engine/Profectus/blob/8c0a0c4/src/features/conversion.ts#L92"target="_blank"rel="noreferrer">profectus/src/features