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
|
|
@ -1,18 +1,4 @@
|
|||
function createDiceTable(size) {
|
||||
return {
|
||||
name: `Dice/d${size}`,
|
||||
buckets: {
|
||||
type: `range`,
|
||||
min: 1,
|
||||
max: size,
|
||||
step: 1,
|
||||
},
|
||||
graph: {
|
||||
type: `bar`,
|
||||
stacked: true,
|
||||
},
|
||||
};
|
||||
};
|
||||
import { createDiceTable } from "../utils/databases/utils.mjs";
|
||||
|
||||
export function registerMetaSettings() {
|
||||
game.settings.register(__ID__, `tables`, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue