No longer using an arbitrary 100 healing. Changing the action's parent

This commit is contained in:
nsalyzyn 2025-12-29 13:32:11 -07:00
parent 88b61c3a94
commit e489502bb2
2 changed files with 3 additions and 3 deletions

View file

@ -135,7 +135,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
async actionUseButton(event, message) { async actionUseButton(event, message) {
const { moveIndex, actionIndex, movePath } = event.currentTarget.dataset; const { moveIndex, actionIndex, movePath } = event.currentTarget.dataset;
const targetUuid = event.currentTarget.closest('.action-use-button-parent').querySelector('select')?.value; const targetUuid = event.currentTarget.closest('.action-use-button-parent').querySelector('select')?.value;
const parent = await foundry.utils.fromUuid(message.system.actor); const parent = await foundry.utils.fromUuid(targetUuid || message.system.actor)
const actionType = message.system.moves[moveIndex].actions[actionIndex]; const actionType = message.system.moves[moveIndex].actions[actionIndex];
const cls = game.system.api.models.actions.actionsTypes[actionType.type]; const cls = game.system.api.models.actions.actionsTypes[actionType.type];

View file

@ -350,7 +350,7 @@ export const defaultRestOptions = {
value: { value: {
custom: { custom: {
enabled: true, enabled: true,
formula: '100' formula: '@system.resources.hitPoints.max'
} }
} }
} }
@ -416,7 +416,7 @@ export const defaultRestOptions = {
value: { value: {
custom: { custom: {
enabled: true, enabled: true,
formula: '100' formula: '@system.armorScore'
} }
} }
} }