From 16395c9f685cf4d759f774eded86dd400b6b27f1 Mon Sep 17 00:00:00 2001 From: psitacus Date: Wed, 9 Jul 2025 01:24:37 -0600 Subject: [PATCH] standardize to be more similar to class item code --- module/applications/sheets/items/armor.mjs | 8 ++++++++ module/applications/sheets/items/weapon.mjs | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/module/applications/sheets/items/armor.mjs b/module/applications/sheets/items/armor.mjs index f583d55e..1852ffd3 100644 --- a/module/applications/sheets/items/armor.mjs +++ b/module/applications/sheets/items/armor.mjs @@ -72,6 +72,10 @@ export default class ArmorSheet extends DHBaseItemSheet { await this.document.update({ 'system.features': selectedOptions.map(x => ({ value: x.value })) }); } + /* -------------------------------------------- */ + /* Drag and Drop */ + /* -------------------------------------------- */ + /** * Handle dropping items onto the attachments section * @param {DragEvent} event - The drop event @@ -95,6 +99,10 @@ export default class ArmorSheet extends DHBaseItemSheet { }); } + /* -------------------------------------------- */ + /* Application Clicks Actions */ + /* -------------------------------------------- */ + /** * Remove an attached item * @param {Event} event - The click event diff --git a/module/applications/sheets/items/weapon.mjs b/module/applications/sheets/items/weapon.mjs index a376de9d..f9a6b574 100644 --- a/module/applications/sheets/items/weapon.mjs +++ b/module/applications/sheets/items/weapon.mjs @@ -71,6 +71,10 @@ export default class WeaponSheet extends DHBaseItemSheet { await this.document.update({ 'system.features': selectedOptions.map(x => ({ value: x.value })) }); } + /* -------------------------------------------- */ + /* Drag and Drop */ + /* -------------------------------------------- */ + /** * Handle dropping items onto the attachments section * @param {DragEvent} event - The drop event @@ -94,6 +98,10 @@ export default class WeaponSheet extends DHBaseItemSheet { }); } + /* -------------------------------------------- */ + /* Application Clicks Actions */ + /* -------------------------------------------- */ + /** * Remove an attached item * @param {Event} event - The click event