Attribute rolls working

This commit is contained in:
Neill Cox 2024-05-05 11:22:51 +10:00
parent 03761d2e2f
commit 4f5b33d29b
4 changed files with 42 additions and 13 deletions

View file

@ -12,9 +12,17 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
group.listName = `Group: ${coreModule.api.Utils.i18n(group.listName ?? group.name)}`
})
const groupsArray = Object.values(groups)
debugger;
//debugger;
DEFAULTS = {
layout: [
{
nestId: 'attributes',
id: 'attributes',
name: coreModule.api.Utils.i18n('GURPS.attributes'),
groups: [
{ ...groups.attributes, nestId: 'attributes_attributes' }
]
},
{
nestId: 'inventory',
id: 'inventory',
@ -39,14 +47,6 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
{ ...groups.utility, nestId: 'utility_utility' }
]
},
{
nestId: 'attributes',
id: 'attributes',
name: coreModule.api.Utils.i18n('GURPS.attributes'),
groups: [
{ ...groups.attributes, nestId: 'attributes_attributes' }
]
}
],
groups: groupsArray
}