@puzzmo/cli 1.0.59 → 1.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puzzmo/cli",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "puzzmo": "./lib/index.js"
@@ -139,14 +139,14 @@ const render = () => {
139
139
  /**
140
140
  * Called once on win. Reports gameplay metrics back to the host via:
141
141
  * - `sdk.gameCompleted(gameplay, augmentations)` — durable record + deeds
142
- * - `sdk.showCompletionScreen(content, gameplay, completed)` — the host's win UI
142
+ * - `sdk.showCompletionScreen(content)` — the host's win UI
143
143
  */
144
144
  const onComplete = () => {
145
145
  const elapsed = Math.round(sdk.timer.timeSecs())
146
146
  const penalty = Math.round(sdk.timer.addedTimeSecs())
147
147
  const data = { elapsedTimeSecs: elapsed, additionalTimeAddedSecs: penalty, pointsAwarded: 0, completed: true }
148
148
  sdk.gameCompleted(data, { deeds: [] })
149
- sdk.showCompletionScreen([{ type: "md", text: penalty > 0 ? `**Cleared!** With ${penalty}s in penalties.` : "**Cleared!**" }], data, true)
149
+ sdk.showCompletionScreen([{ type: "md", text: penalty > 0 ? `**Cleared!** With ${penalty}s in penalties.` : "**Cleared!**" }])
150
150
  }
151
151
 
152
152
  const persistState = () => {