aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/companion/Mood.js
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-23 16:28:40 +0200
committerDanilo M. <danix@danix.xyz>2026-10-23 16:28:40 +0200
commit6bb76a3ba15bac0980b85ed0b8a63633a1ee1a2f (patch)
tree21b06292439d63f035341b312e045d496fe59218 /desktop/companion/Mood.js
parenta027a6c929d885c54e0e19952ef4fffdfbce8268 (diff)
downloadquickshell-6bb76a3ba15bac0980b85ed0b8a63633a1ee1a2f.tar.gz
quickshell-6bb76a3ba15bac0980b85ed0b8a63633a1ee1a2f.zip
companion: admire, turned to a wallpaper and then blushing
The watch back view for 1.5 s, then blush3 for 3 s, at most every 3 minutes. Below clicks, so a click during it wins; above the mock and typing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/companion/Mood.js')
-rw-r--r--desktop/companion/Mood.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/companion/Mood.js b/desktop/companion/Mood.js
index a3bc8cb..c4df50b 100644
--- a/desktop/companion/Mood.js
+++ b/desktop/companion/Mood.js
@@ -28,6 +28,9 @@ var T = {
monologueCooldown: 3600000,
destruct: 1000, // the glow and the flash; the sprite is hidden under it
scorched: 3000,
+ admireLook: 1500, // turned to the wallpaper, before the blush
+ admireBlush: 3000,
+ admireCooldown: 180000,
skirtless: 60000,
};
@@ -62,6 +65,8 @@ function pick(s) {
if (s.now - s.repliedAt < T.waveHold) return st("wave", "wave");
if (s.clicks.count > 0 && s.now - s.clicks.at < T.clickHold)
return st("clicks", clickFrame(s.clicks.count));
+ if (s.now - s.admireAt < T.admireLook + T.admireBlush)
+ return st("admire", s.now - s.admireAt < T.admireLook ? "watch" : "blush3");
if (s.now - s.mockAt < T.mockHold)
return st("mock", s.now - s.mockAt < T.mockHold / 2 ? "point" : "smirk");
if (s.now - s.typingAt < T.typingHold) return st("watch", "watch");
@@ -84,6 +89,8 @@ function outfit(destructAt, now) {
function mockAllowed(lastMockAt, now) { return now - lastMockAt >= T.mockCooldown; }
+function admireAllowed(lastAt, now) { return now - lastAt >= T.admireCooldown; }
+
function canSpeak(lastLineAt, now) { return now - lastLineAt >= T.lineCooldown; }
// Whether the opening monologue plays: a chance per trigger, and never