@mingxy/opencode-mascot 0.4.34 → 0.4.35

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": "@mingxy/opencode-mascot",
3
- "version": "0.4.34",
3
+ "version": "0.4.35",
4
4
  "description": "OpenCode TUI mascot plugin framework - customizable ASCII mascots for your terminal",
5
5
  "author": "mingxy",
6
6
  "license": "MIT",
@@ -240,7 +240,12 @@ export function createAnimatedRenderer(pack: MascotPack): {
240
240
  if (currentState() === "idle" && !frameOverride() && walkStep === -1) {
241
241
  setJumpOffset(-2);
242
242
  setTimeout(() => setJumpOffset(-1), 1500);
243
- setTimeout(() => setJumpOffset(0), 2000);
243
+ setTimeout(() => {
244
+ setJumpOffset(0);
245
+ if (Math.random() < 0.4) {
246
+ fallApart();
247
+ }
248
+ }, 2000);
244
249
  }
245
250
  if (currentState() !== "sleeping") {
246
251
  jumpTimeout = scheduleNextJump();