1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

Add Dice Sorting option

This commit is contained in:
Ean Milligan
2025-06-28 05:36:10 -04:00
parent 5f58f9cae8
commit c9772d3ccf
6 changed files with 61 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ import config from '~config';
import { HelpContents, HelpPage } from 'commands/helpLibrary/helpLibrary.d.ts';
const name = 'Roll20 Dice Options';
const name = 'Dice Options';
const description =
`\`${config.prefix}xdydzracsq!${config.postfix}\` Rolls all configs requested, you may repeat the command multiple times in the same message (just ensure you close each roll with \`${config.postfix}\`).`;
const dict = new Map<string, HelpContents>([
@@ -246,6 +246,20 @@ The basic \`m\` option will only add labels without modifying the results, where
],
},
],
[
'sorting-dice',
{
name: 'Sorting Dice',
description: `**Usage:** \`xdys\`, \`xdysa\`, or \`xdysd\`
\`s\` and \`sa\` will sort the dice in ascending order within the roll
\`sd\` will sort the dice in descending order within the roll`,
example: [
'`[[10d6s]]` => [__1__ + __1__ + 2 + 2 + 3 + 3 + 3 + 5 + **6** + **6**] = **__32__**',
'`[[10d6sa]]` => [__1__ + __1__ + 2 + 2 + 3 + 3 + 3 + 5 + **6** + **6**] = **__32__**',
'`[[10d6sd]]` => [**6** + **6** + **6** + 5 + 4 + 4 + 2 + __1__ + __1__ + __1__] = **__36__**',
],
},
],
]);
export const DiceOptionsHelpPages: HelpPage = {