Begin making the pre-embed quantity change logic based on source IDs and not name

This commit is contained in:
Oliver-Akins 2024-03-21 21:24:26 -06:00
parent 6a355e63c0
commit bad95f8c18
3 changed files with 44 additions and 14 deletions

View file

@ -1,4 +1,10 @@
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 > 0) {