@mingxy/opencode-mascot 0.4.16 → 0.4.18
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
|
@@ -138,6 +138,11 @@ const yueerEffects: MascotPack["effects"] = {
|
|
|
138
138
|
if (faceIdx >= 0) {
|
|
139
139
|
result[faceIdx] = waveSide ? "╲( ^ω^ )╱ " : " ~( ^ω^ )~";
|
|
140
140
|
}
|
|
141
|
+
const ahogeIdx = result.findIndex((l) => l.includes("☆") || l.includes("★"));
|
|
142
|
+
if (ahogeIdx >= 0) {
|
|
143
|
+
const mark = result[ahogeIdx].includes("★") ? "★" : "☆";
|
|
144
|
+
result[ahogeIdx] = waveSide ? " " + mark : " " + mark;
|
|
145
|
+
}
|
|
141
146
|
}
|
|
142
147
|
|
|
143
148
|
if (stompActive) {
|
|
@@ -112,7 +112,7 @@ export function createAnimatedRenderer(pack: MascotPack): {
|
|
|
112
112
|
if (currentState() !== "idle") return;
|
|
113
113
|
idleSleepTimeout = setTimeout(() => {
|
|
114
114
|
if (currentState() === "idle") {
|
|
115
|
-
|
|
115
|
+
setState("sleeping");
|
|
116
116
|
stopWalk();
|
|
117
117
|
}
|
|
118
118
|
}, anim.idleTimeout);
|