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

@ -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),
})