export class DotDungeonItem extends Item { async _preCreate() { if (this.isEmbedded) { return await this.actor?.preItemEmbed(this); }; }; get usedCapacity() { let capacity = 0; if ( this.system.uses_inventory_slot && (this.system.quantity === undefined || this.system.quantity > 0) ) { capacity = 1; }; if (this.system.quantity_affects_used_capacity) { capacity = this.system.quantity; }; return capacity; }; };