daggerheart/module/data/item/loot.mjs
Carlos Fernandez 2fde61a1d5
[Feature] Make all item types quantifiable in the party (#1808)
* Show notification when invalid item types are added to actors

* Make all item types quantifiable in the party actor

* Remove from comment

* Use isInventoryItem to set quantity

* Fix formatting
2026-04-16 11:12:36 +02:00

28 lines
740 B
JavaScript

import BaseDataItem from './base.mjs';
export default class DHLoot extends BaseDataItem {
/** @inheritDoc */
static get metadata() {
return foundry.utils.mergeObject(super.metadata, {
label: 'TYPES.Item.loot',
type: 'loot',
hasDescription: true,
isInventoryItem: true,
hasActions: true
});
}
/** @inheritDoc */
static defineSchema() {
return {
...super.defineSchema()
};
}
/* -------------------------------------------- */
/**@override */
static DEFAULT_ICON = 'systems/daggerheart/assets/icons/documents/items/open-treasure-chest.svg';
/* -------------------------------------------- */
}