import{_ as e,o as s,c as a,Q as t}from"./chunks/framework.1169fbc9.js";const g=JSON.parse('{"title":"Upgrades","description":"","frontmatter":{},"headers":[],"relativePath":"public/kronos/docs/upgrades.md","filePath":"public/kronos/docs/upgrades.md","lastUpdated":1701136977000}'),n={name:"public/kronos/docs/upgrades.md"},o=t(`

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: {
    11: {
        description: "Blah",
        cost: new Decimal(100),
        etc
    },
    etc
}
upgrades: {
    11: {
        description: "Blah",
        cost: new Decimal(100),
        etc
    },
    etc
}

Usually, upgrades 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=[o];function r(p,i,c,u,d,h){return s(),a("div",null,l)}const f=e(n,[["render",r]]);export{g as __pageData,f as default};