MCPcopy Create free account
hub / github.com/github/awesome-copilot / createState

Function createState

extensions/token-pacman/extension.mjs:12–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const milestoneThresholds = [10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000, 25000, 50000, 100000];
11
12function createState() {
13 return {
14 credits: 0,
15 limit: 100,
16 character: "mr",
17 dead: false,
18 achievements: [],
19 fruit: null,
20 fruitVersion: 0,
21 entitlement: null,
22 runVersion: 0,
23 };
24}
25
26function nextMilestone(credits) {
27 return milestoneThresholds.find((threshold) => threshold > credits) || milestoneThresholds[milestoneThresholds.length - 1];

Callers 1

startServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected