Harden the preCreate quantity increase to use source IDs in finding the item
This commit is contained in:
parent
55a64afe02
commit
b3e699bc32
3 changed files with 9 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { DotDungeonItem } from "./GenericItem.mjs";
|
||||
|
||||
export class Aspect extends DotDungeonItem {
|
||||
async _preCreate(...args) {
|
||||
async _preCreate() {
|
||||
if (this.isEmbedded) {
|
||||
if (this.actor.atAspectLimit) {
|
||||
ui.notifications.error(
|
||||
|
|
@ -14,7 +14,7 @@ export class Aspect extends DotDungeonItem {
|
|||
return false;
|
||||
};
|
||||
|
||||
return await this.actor?.preItemEmbed(...args);
|
||||
return await this.actor?.preItemEmbed(this);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
export class DotDungeonItem extends Item {
|
||||
async _preCreate(...args) {
|
||||
async _preCreate() {
|
||||
if (this.isEmbedded) {
|
||||
return await this.actor?.preItemEmbed(...args);
|
||||
return await this.actor?.preItemEmbed(this);
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue