Attribute rolls working

This commit is contained in:
Neill Cox 2024-05-06 11:27:06 +10:00
parent fcdd31567d
commit b6c3da1127
3 changed files with 41 additions and 4 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),
})