<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> key: </span><spanstyle="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p"</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// What the hotkey button is. Use uppercase if it's combined with shift, or "ctrl+x" for holding down ctrl.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> description: </span><spanstyle="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p: reset your points for prestige points"</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// The description of the hotkey that is displayed in the game's How To Play tab</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">]</span></span></code></pre></div></li><li><p>style: <strong>optional</strong>. a "CSS object" where the keys are CSS attributes, containing any CSS that should affect this layer's entire tab.</p></li><li><p>tabFormat: <strong>optional</strong>. use this if you want to add extra things to your tab or change the layout. <ahref="./custom-tab-layouts">See here for more info.</a></p></li><li><p>midsection: <strong>optional</strong>, an alternative to <code>tabFormat</code>, which is inserted in between Milestones and Buyables in the standard tab layout. (cannot do subtabs)</p></li></ul><h2id="big-features-all-optional"tabindex="-1">Big features (all optional) <aclass="header-anchor"href="#big-features-all-optional"aria-label="Permalink to "Big features (all optional)""></a></h2><ul><li><p>upgrades: A grid of one-time purchases which can have unique upgrade conditions, currency costs, and bonuses. <ahref="./upgrades">See here for more info.</a></p></li><li><p>milestones: A list of bonuses gained upon reaching certain thresholds of a resource. Often used for automation/QOL. <ahref="./milestones">See here for more info.</a></p></li><li><p>challenges: The player can enter challenges, which make the game harder. If they reach a goal and beat the challenge, they recieve a bonus. <ahref="./challenges">See here for more info.</a></p></li><li><p>buyables: Effectively upgrades that can be bought multiple times, and are optionally respeccable. Many uses. <ahref="./buyables">See here for more info.</a></p></li><li><p>clickables: Extremely versatile and generalized buttons which can only be clicked sometimes. <ahref="./clickables">See here for more info.</a></p></li><li><p>microtabs: An area that functions like a set of subtabs, with buttons at the top changing the content within. (Advanced) <ahref="./subtabs-and-microtabs">See here for more info.</a></p></li><li><p>bars: Display some information as a progress bar, gague, or similar. They are highly customizable, and can be vertical as well. <ahref="./bars">See here for more info.</a></p></li><li><p>achievements: Kind of like milestones, but with a different display style and some other differences. Extra features are on the way at a later date! <ahref="./achievements">See here for more info.</a></p></li><li><p>infoboxes: Displays some text in a box that can be shown or hidden. <ahref="./infoboxes">See here for more info.</a></p></li><li><p>achievementPopups, milestonePopups: <strong>optional</strong>, If false, disables popup message when you get the achievement/milestone. True by default.</p></li></ul><h2id="prestige-formula-features"tabindex="-1">Prestige formula features <aclass="header-anchor"href="#prestige-formula-features"aria-label="Permalink to "Prestige formula features""></a></h2><ul><li><p>type: <strong>optional</strong>. Determines which prestige formula you use. Defaults to "none".</p><ul><li>"normal": The amount of currency you gain is independent of its current amount (like Prestige). The formula before bonuses is based on <code>baseResource^exponent</code></li><li>"static": The cost is dependent on your total after reset. The formula before bonuses is based on <code>base^(x^exponent)</code></li><li>"custom": You can define everything, from the calculations to the text on the button, yourself. (See more at the bottom)</li><li>"none": This layer does not prestige, and therefore does not need any of the other features in this section.</li></ul></li><li><p>baseResource: The name of the resource that determines how much of the main currency you gain on reset.</p></li><li><p>baseAmount(): A function that gets the current value of the base resource.</p></li><li><p>requires: A Decimal, the amount of the base needed to gain 1 of the prestige currency. Also the amount required to unlock the layer. You can instead make this a function, to make it harder if another layer was unlocked first (based
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h2id="custom-prestige-type"tabindex="-1">Custom Prestige type <aclass="header-anchor"href="#custom-prestige-type"aria-label="Permalink to "Custom Prestige type""></a></h2><p>(All of these can also be used by other prestige types)</p><ul><li><p>getResetGain(): <strong>mostly for custom prestige type</strong>. Returns how many points you should get if you reset now. You can call <code>getResetGain(this.layer, useType = "static")</code> or similar to calculate what your gain would be under another prestige type (provided you have all of the required features in the layer).</p></li><li><p>getNextAt(canMax=false): <strong>mostly for custom prestige type</strong>. Returns how many of the base currency you need to get to the next point. <code>canMax</code> is an optional variable used with Static-ish layers to differentiate between if it's looking for the first point you can reset at, or the requirement for any gain at all (Supporting both is good). You can also call <code>getNextAt(this.layer, canMax=false, useType = "static")</code> or similar to calculate what your next at would be under another prestige type (provided you have all of the required features in the layer).</p></li><li><p>canReset(): <strong>mostly for custom prestige type</strong>. Return true only if you have the resources required to do a prestige here.</p></li><li><p>prestigeNotify(): <strong>mostly for custom prestige types</strong>, returns true if this layer should be subtly highlighted to indicate you can prestige for a meaningful gain.</p></li></ul></div></div></main><footerclass="VPDocFooter"data-v-39a288b8data-v-d4a0bba5><!--[--><!--]--><!----><navclass="prev-next"aria-labelledby="doc-footer-aria-label"data-v-d4a0bba5><spanclass="visually-hidden"id="doc-footer-aria-label"data-v-d4a0bba5>Pager</span><divclass="pager"data-v-d4a0bba5><!----></div><divclass="pager"data-v-d4a0bba5><aclass="VPLink link pager-link next"href="/garden/the-small-web"data-v-d4a0bba5><!--[--><spanclass="desc"data-v-d4a0bba5>Next page</span><spanclass="title"data-v-d4a0bba5>The Small Web</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><footerclass="vp-doc"data-v-65abf2a6><divdata-v-65abf2a6>CC 2024 <aclass="h-card"rel="me"href="/about"data-v-65abf2a6><imgsrc="/me.jpg"alt=""data-v-65abf2a6>The Paper Pilot</a>. <arel="license"href="https://creativecommons.org/licenses/by-nc-sa/4.0/"data-v-65abf2a6>CC BY-NC-SA 4.0</a>.</div><divdata-v-65abf2a6>Any and all opinions listed here are my own and not representative of my employers; future, past and present.</div><divdata-v-65abf2a6><ahref="https://resume.incremental.social/thepaperpilot/thepaperpilot"data-v-65abf2a6>Resume</a> (not actively seeking new opportunities).</div><divdata-v-65abf2a6>Site built from <ahref="https://code.incremental.social/thepaperpilot/pages/commit/61fdffe4df40a537cfa6baf449f6318b3b5965bb"data-v-65abf2a6>this commit</a> on <timedata-v-65abf2a6>Monday, June 24, 2024 at 20:02:03</time>. <ahref="https://www.thepaperpilot.org/licenses.txt"data-v-65abf2a6>Legal disclaimers</a>.</div></footer><!--]--></div></div>