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

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