From c2c69f1bfdabace19df30d8e0aed35425df62ef5 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Sun, 23 Feb 2020 17:35:24 -0800 Subject: [PATCH] If a slave's clothes are "choosing her own clothes" but her choosesOwnClothes flag isn't set, set it. This could happen because of the bug we just fixed, or it could happen if someone cheats without knowing what they're doing, or something else, but it's a bad state and we should try to get out of it. --- src/endWeek/saChoosesOwnClothes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/endWeek/saChoosesOwnClothes.js b/src/endWeek/saChoosesOwnClothes.js index 5deb57be435..5a3bb536b09 100644 --- a/src/endWeek/saChoosesOwnClothes.js +++ b/src/endWeek/saChoosesOwnClothes.js @@ -21,6 +21,9 @@ window.saChoosesOwnClothes = (function() { function saChoosesOwnClothes(slave) { player = V.PC; r = ""; + if (slave.clothes === "choosing her own clothes") { + slave.choosesOwnClothes = 1; // make sure the flag is set so we don't get locked into a bad state + } if (slave.choosesOwnClothes !== 1) { return r; } ({ he, him, his, hers, himself, boy, -- GitLab