diff --git a/assets/json/box-choosing.json b/assets/json/box-choosing.json
index 4f5c48d5..ae4db56d 100644
--- a/assets/json/box-choosing.json
+++ b/assets/json/box-choosing.json
@@ -38,5 +38,33 @@
"text": "Thanks for playing! If you liked this game, please consider supporting the developers of Higurashi!\n",
"end": true
}
+ ],
+ "bothred": [
+ "Have you thought about it?\nIn the end, you chose this color, didn't you?\n\n...As soon as you chose, the other box disappeared.\nSo you can give up on the contents of that one, okay?\nThat's the rule.\n\nNow, open up the box you chose.",
+ "Inside the box there was... a stick of chewing gum.",
+ "...Right now you're thinking: \"That's it?\"",
+ "That's right, the contents of the red box and the blue box were a piece of caramel and a stick of chewing gum.\nYou might have thought you made the wrong choice before, but now seeing them together like this, you can't really say that either choice was the wrong one.\n\nWell, I guess everybody has their personal preferences.\nIf you prefer caramel to gum, for example.\n...You're definitely thinking of choosing to open the box again based on that preference.",
+ "...The clear choices you wanted were basically this.\nThe selfish desire to open up both boxes and compare the contents, then pick the one most suited to you.",
+ "But you see, reality is the same as this game.\nIf you pick one, the one you didn't choose disappears. So there's no way you could check the result.",
+ "If at that time, if you had done this, or perhaps if you had done that... then it wouldn't be hard to imagine that you could be happier (or perhaps less happy) than you are right now.\nIn the end, you only have the pleasure of approving of or being disappointed by the choice that you did make.",
+ "But that's fine.\nAfter all, didn't you enjoy the thrill of making the choice?\nIf, like now, you knew the contents of both boxes, then the choice between the red box or the blue box would just be a waste of time.\nBecause instead of this boring game about boxes, you could be looking at the quickly-changing evening summer sky, listening for the distant sound of thunder, and pondering if it's going to rain or not... that would be much more fun.",
+ {
+ "text": "Thanks for playing! If you liked this game, please consider supporting the developers of Higurashi!\n",
+ "end": true
+ }
+ ],
+ "bothblue": [
+ "Have you thought about it?\nIn the end, you chose this color, didn't you?\n\n...As soon as you chose, the other box disappeared.\nSo you can give up on the contents of that one, okay?\nThat's the rule.\n\nNow, open up the box you chose.",
+ "Inside the box there was... a piece of caramel.",
+ "...Right now you're thinking: \"That's it?\"",
+ "That's right, the contents of the red box and the blue box were a piece of caramel and a stick of chewing gum.\nYou might have thought you made the wrong choice before, but now seeing them together like this, you can't really say that either choice was the wrong one.\n\nWell, I guess everybody has their personal preferences.\nIf you prefer caramel to gum, for example.\n...You're definitely thinking of choosing to open the box again based on that preference.",
+ "...The clear choices you wanted were basically this.\nThe selfish desire to open up both boxes and compare the contents, then pick the one most suited to you.",
+ "But you see, reality is the same as this game.\nIf you pick one, the one you didn't choose disappears. So there's no way you could check the result.",
+ "If at that time, if you had done this, or perhaps if you had done that... then it wouldn't be hard to imagine that you could be happier (or perhaps less happy) than you are right now.\nIn the end, you only have the pleasure of approving of or being disappointed by the choice that you did make.",
+ "But that's fine.\nAfter all, didn't you enjoy the thrill of making the choice?\nIf, like now, you knew the contents of both boxes, then the choice between the red box or the blue box would just be a waste of time.\nBecause instead of this boring game about boxes, you could be looking at the quickly-changing evening summer sky, listening for the distant sound of thunder, and pondering if it's going to rain or not... that would be much more fun.",
+ {
+ "text": "Thanks for playing! If you liked this game, please consider supporting the developers of Higurashi!\n",
+ "end": true
+ }
]
}
diff --git a/commands/games/box-choosing.js b/commands/games/box-choosing.js
index afcf94fe..49f37e86 100644
--- a/commands/games/box-choosing.js
+++ b/commands/games/box-choosing.js
@@ -14,6 +14,7 @@ module.exports = class BoxChoosingCommand extends Command {
});
this.playing = new Set();
+ this.played = new Set();
}
async run(msg) {
@@ -41,7 +42,9 @@ module.exports = class BoxChoosingCommand extends Command {
time: 120000
});
if (!choose.size) break;
- path = line.paths[line.options.indexOf(choose.first().content.toLowerCase())];
+ path = '';
+ if (this.played.has(msg.author.id)) path += 'both';
+ path += line.paths[line.options.indexOf(choose.first().content.toLowerCase())];
i = 0;
} else {
const verification = await verify(msg.channel, msg.author, 120000);
@@ -50,6 +53,8 @@ module.exports = class BoxChoosingCommand extends Command {
}
}
this.playing.delete(msg.channel.id);
+ if (this.played.has(msg.author.id)) this.played.delete(msg.author.id);
+ else this.played.add(msg.author.id);
return msg.say('See you soon!');
} catch (err) {
this.playing.delete(msg.channel.id);
diff --git a/package.json b/package.json
index 1937238a..587772c2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "xiao",
- "version": "85.10.1",
+ "version": "85.10.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {