Fixed dice excluding last face, increased max rolls to 20. Increased default number of Hunt guesses. Increased default Riddle timeout.
This commit is contained in:
@@ -29,7 +29,7 @@ function onCommand(args, context) {
|
||||
}
|
||||
|
||||
const results = Array.from({ length: rolls }, () => {
|
||||
const result = crypto.randomInt(1, faces);
|
||||
const result = crypto.randomInt(1, faces + 1);
|
||||
|
||||
// using U+2003 Em Space after dice to create double space that doesn't get filtered in SChat
|
||||
return `${style.grey(dieFaces[result - 1] || '☐')} ${style.bold(result)}`; // eslint-disable-line no-irregular-whitespace
|
||||
|
||||
Reference in New Issue
Block a user