Begin making the pre-embed quantity change logic based on source IDs and not name
This commit is contained in:
parent
6a355e63c0
commit
bad95f8c18
3 changed files with 44 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue