mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 19:51:08 +01:00
* REFACTOR: remove DhpApplicationMixin REFACTOR: remove getEmbeddedDocument method from Item class REFACTOR: remove prepareData method from Actor class REFACTOR: remove _preUpdate method from Actor class * REFACTOR: rename dhpItem to DHItem REFACTOR: improvement Item#isInventoryItem getter REFACTOR: simplify Item's createDialog static method. REFACTOR: remove documentCreate template * FEAT: add SearchFilter for character-sheet Inventory and DomainCards FEAT: simplify the preparetion of inventory context --------- Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
24 lines
697 B
JavaScript
24 lines
697 B
JavaScript
import BaseDataItem from './base.mjs';
|
|
import ActionField from '../fields/actionField.mjs';
|
|
|
|
export default class DHMiscellaneous extends BaseDataItem {
|
|
/** @inheritDoc */
|
|
static get metadata() {
|
|
return foundry.utils.mergeObject(super.metadata, {
|
|
label: 'TYPES.Item.miscellaneous',
|
|
type: 'miscellaneous',
|
|
hasDescription: true,
|
|
isQuantifiable: true,
|
|
isInventoryItem: true,
|
|
});
|
|
}
|
|
|
|
/** @inheritDoc */
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
return {
|
|
...super.defineSchema(),
|
|
actions: new fields.ArrayField(new ActionField())
|
|
};
|
|
}
|
|
}
|