This commit is contained in:
WBHarry 2025-07-21 03:14:41 +02:00
parent 42a705a870
commit f614456e86
10 changed files with 68 additions and 90 deletions

View file

@ -3,6 +3,17 @@
* @extends {foundry.documents.Item}
*/
export default class DHItem extends foundry.documents.Item {
/**@inheritdoc */
static async create(data, operation = {}) {
if (data.type === 'feature') {
const linkUuid = Object.keys(data)
.find(x => x.startsWith('system.itemLinks.'))
?.slice(17);
}
return super.create(data, operation);
}
/** @inheritDoc */
prepareEmbeddedDocuments() {
super.prepareEmbeddedDocuments();