mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 15:39:02 +01:00
standardize to be more similar to class item code
This commit is contained in:
parent
99aca056c8
commit
16395c9f68
2 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue