REFACTOR: remove DhpApplicationMixin

REFACTOR: remove getEmbeddedDocument method from Item class
REFACTOR: remove prepareData method from Actor class
REFACTOR: remove _preUpdate method from Actor class
This commit is contained in:
Joaquin Pereyra 2025-06-28 13:42:18 -03:00
parent 1135669d0b
commit a4881854a3
3 changed files with 0 additions and 66 deletions

View file

@ -1,14 +1,4 @@
export default class DhpItem extends Item {
/** @inheritdoc */
getEmbeddedDocument(embeddedName, id, { invalid = false, strict = false } = {}) {
const systemEmbeds = this.system.constructor.metadata.embedded ?? {};
if (embeddedName in systemEmbeds) {
const path = `system.${systemEmbeds[embeddedName]}`;
return foundry.utils.getProperty(this, path).get(id) ?? null;
}
return super.getEmbeddedDocument(embeddedName, id, { invalid, strict });
}
/** @inheritDoc */
prepareEmbeddedDocuments() {
super.prepareEmbeddedDocuments();