From a98a2dd3fef9e2890a85a4a5b70ac24d2a1fde71 Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Sun, 27 Jul 2025 23:38:02 +0200 Subject: [PATCH] Remove comments --- module/applications/ui/chatLog.mjs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index 455a1097..e0f990ba 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -17,9 +17,6 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo html.querySelectorAll('.duality-action-damage').forEach(element => element.addEventListener('click', event => this.onRollDamage(event, data.message)) ); - // html.querySelectorAll('.duality-action-healing').forEach(element => - // element.addEventListener('click', event => this.onRollDamage(event, data.message)) - // ); html.querySelectorAll('.target-save-container').forEach(element => element.addEventListener('click', event => this.onRollSave(event, data.message)) ); @@ -92,17 +89,6 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo } } - // async onRollHealing(event, message) { - // event.stopPropagation(); - // const actor = await this.getActor(message.system.source.actor); - // if (!actor || !game.user.isGM) return true; - // if (message.system.source.item && message.system.source.action) { - // const action = this.getAction(actor, message.system.source.item, message.system.source.action); - // if (!action || !action?.rollHealing) return; - // await action.rollHealing(event, message); - // } - // } - async onRollSave(event, message) { event.stopPropagation(); const actor = await this.getActor(message.system.source.actor), @@ -229,18 +215,6 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo } } - // async onHealing(event, message) { - // event.stopPropagation(); - // const targets = Array.from(game.user.targets); - - // if (targets.length === 0) - // return ui.notifications.info(game.i18n.localize('DAGGERHEART.UI.Notifications.noTargetsSelected')); - - // for (var target of targets) { - // target.actor.takeHealing(message.system.roll); - // } - // } - /** * Toggle visibility of target containers. * @param {MouseEvent} event