Get most of the prompt to create new tables working, and keeping the Dice namespace restricted to a certain bucket type
This commit is contained in:
parent
8c9fd1930a
commit
dfc75fceaf
8 changed files with 73 additions and 19 deletions
5
module/utils/sorters/diceSize.mjs
Normal file
5
module/utils/sorters/diceSize.mjs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export function diceSizeSorter(a, b) {
|
||||
const aInt = Number(a.slice(1));
|
||||
const bInt = Number(b.slice(1));
|
||||
return Math.sign(aInt - bInt);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue