From 1dea40ea309d72d2aa28983d13800074eff9ec3f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 23 Oct 2026 16:53:17 +0200 Subject: companion: the leotard's timeout is a setting, or none at all Settings > Desktop > Companion takes the seconds she stays in the leotard after the self-destruct, 60 as before. Switched off, she keeps it until she is hidden and shown again, which already put the dress back early. Mood.outfit takes the time instead of reading T. Co-Authored-By: Claude Opus 5.5 --- desktop/companion/test_mood.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'desktop/companion/test_mood.js') diff --git a/desktop/companion/test_mood.js b/desktop/companion/test_mood.js index f24340c..37af2ea 100644 --- a/desktop/companion/test_mood.js +++ b/desktop/companion/test_mood.js @@ -99,12 +99,18 @@ assert.deepStrictEqual([1, 2, 3, 4, 5, 6].map(M.clickFrame), // Outfit: the dress until the flash is over, then the leotard for // scorched + skirtless, then the dress again. -assert.strictEqual(M.outfit(0, NOW), "dress"); -assert.strictEqual(M.outfit(NOW - 10, NOW), "dress"); -assert.strictEqual(M.outfit(NOW - M.T.destruct, NOW), "leotard"); -const bare = M.T.destruct + M.T.scorched + M.T.skirtless; -assert.strictEqual(M.outfit(NOW - bare + 10, NOW), "leotard"); -assert.strictEqual(M.outfit(NOW - bare, NOW), "dress"); +const SK = 60000; +assert.strictEqual(M.outfit(0, NOW, SK), "dress"); +assert.strictEqual(M.outfit(NOW - 10, NOW, SK), "dress"); +assert.strictEqual(M.outfit(NOW - M.T.destruct, NOW, SK), "leotard"); +const bare = M.T.destruct + M.T.scorched + SK; +assert.strictEqual(M.outfit(NOW - bare + 10, NOW, SK), "leotard"); +assert.strictEqual(M.outfit(NOW - bare, NOW, SK), "dress"); +// A skirtless time of 0 keeps the leotard until she is shown again, which +// resets destructAt. +assert.strictEqual(M.outfit(NOW - 10, NOW, 0), "dress"); +assert.strictEqual(M.outfit(NOW - 3600000, NOW, 0), "leotard"); +assert.strictEqual(M.outfit(0, NOW, 0), "dress"); // Cooldowns. assert.strictEqual(M.mockAllowed(0, NOW), true); -- cgit v1.2.3