ENhance actor sheet with roll messages
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
import { GROUP } from './constants.js'
|
||||
|
||||
export let DEFAULTS = null
|
||||
|
||||
Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
|
||||
const groups = foundry.utils.deepClone(GROUP)
|
||||
Object.values(groups).forEach(group => {
|
||||
group.name = coreModule.api.Utils.i18n(group.name)
|
||||
group.listName = `Group: ${coreModule.api.Utils.i18n(group.listName ?? group.name)}`
|
||||
})
|
||||
const groupsArray = Object.values(groups)
|
||||
|
||||
DEFAULTS = {
|
||||
layout: [
|
||||
{
|
||||
nestId: 'stats',
|
||||
id: 'stats',
|
||||
name: game.i18n.localize('AWEMMY.TAH.Stats'),
|
||||
groups: [
|
||||
{ ...groups.attributes, nestId: 'stats_attributes' },
|
||||
{ ...groups.hp, nestId: 'stats_hp' },
|
||||
{ ...groups.flow, nestId: 'stats_flow' }
|
||||
]
|
||||
},
|
||||
{
|
||||
nestId: 'combat',
|
||||
id: 'combat',
|
||||
name: game.i18n.localize('AWEMMY.TAH.Combat'),
|
||||
groups: [
|
||||
{ ...groups.weapons, nestId: 'combat_weapons' },
|
||||
{ ...groups.conditions, nestId: 'combat_conditions' }
|
||||
]
|
||||
},
|
||||
{
|
||||
nestId: 'items',
|
||||
id: 'items',
|
||||
name: game.i18n.localize('AWEMMY.TAH.Items'),
|
||||
groups: [
|
||||
{ ...groups.abilities, nestId: 'items_abilities' },
|
||||
{ ...groups.kits, nestId: 'items_kits' }
|
||||
]
|
||||
},
|
||||
{
|
||||
nestId: 'utility',
|
||||
id: 'utility',
|
||||
name: game.i18n.localize('AWEMMY.TAH.Utility'),
|
||||
groups: [
|
||||
{ ...groups.utility, nestId: 'utility_utility' }
|
||||
]
|
||||
}
|
||||
],
|
||||
groups: groupsArray
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user