Attribute rolls working
This commit is contained in:
parent
fcdd31567d
commit
b6c3da1127
3 changed files with 41 additions and 4 deletions
|
|
@ -32,7 +32,7 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
|
|||
}
|
||||
|
||||
if (this.actorType === 'character') {
|
||||
debugger;
|
||||
//debugger;
|
||||
this.#buildCharacterActions()
|
||||
} else if (!this.actor) {
|
||||
this.#buildMultipleTokenActions()
|
||||
|
|
@ -58,9 +58,13 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
|
|||
const value = a[1].value
|
||||
// img
|
||||
|
||||
let actionId = key
|
||||
if ( key == "WILL" ) actionId = "Will";
|
||||
if ( key == "PER" ) actionId = "Per";
|
||||
|
||||
actions.push({
|
||||
id: key,
|
||||
name: coreModule.api.Utils.i18n(key),
|
||||
id: actionId,
|
||||
name: coreModule.api.Utils.i18n("GURPS.attributes" + key),
|
||||
description: coreModule.api.Utils.i18n('GURPS.Attributes'),
|
||||
encodedValue: [macroType, key].join(this.delimiter),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue