import{_ as e,c as s,o as i,a9 as a}from"./chunks/framework.D8PMdl4T.js";const y=JSON.parse('{"title":"Upgrades","description":"","frontmatter":{},"headers":[],"relativePath":"public/lit/docs/upgrades.md","filePath":"public/lit/docs/upgrades.md","lastUpdated":1606766606000}'),t={name:"public/lit/docs/upgrades.md"},n=a(`

Upgrades

Useful functions for dealing with Upgrades and implementing their effects:

Hint: Basic point gain is calculated in mod.js's "getPointGen" function.

Upgrades are stored in the following format:

js
upgrades: {
    rows: # of rows,
    cols: # of columns,
    11: {
        description: "Blah",
        cost: new Decimal(100),
        etc
    },
    etc
}

Each upgrade should have an id where the first digit is the row and the second digit is the column.

Individual upgrades can have these features:

By default, upgrades use the main prestige currency for the layer. You can include these to change them (but it needs to be a Decimal):

If you want to do something more complicated like upgrades that cost two currencies, you can override the purchase system with these (and you need to use fullDisplay as well)

`,13),l=[n];function r(o,p,h,d,u,c){return i(),s("div",null,l)}const k=e(t,[["render",r]]);export{y as __pageData,k as default};