mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Initial
This commit is contained in:
parent
42a705a870
commit
f614456e86
10 changed files with 68 additions and 90 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue