import{_ as e,c as s,o as i,a5 as t}from"./chunks/framework.Mb1uu3dm.js";const u=JSON.parse('{"title":"Milestones","description":"","frontmatter":{},"headers":[],"relativePath":"public/kronos/docs/milestones.md","filePath":"public/kronos/docs/milestones.md","lastUpdated":1607827402000}'),a={name:"public/kronos/docs/milestones.md"},n=t(`

Milestones

Milestones are awarded to the player when they meet a certain goal, and give some benefit. Milestones should be formatted like this:

js
milestones: {
    0: {
        requirementDescription: "123 waffles",
        effectDescription: "blah",
        done() { return player.w.points.gte(123) }
    }
    etc
}

You can use hasMilestone(layer, id) to determine if the player has a given milestone

Milestone features:

Disaable milestone popups by adding milestonePopups: false to the layer.

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