Small cleanup
This commit is contained in:
parent
f26d75b56f
commit
836e57347f
2 changed files with 3 additions and 5 deletions
|
@ -125,7 +125,7 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Options, DS4ActorSheetD
|
|||
}
|
||||
|
||||
/**
|
||||
* Handle creating a new Owned Item for the actor using initial data defined in the HTML dataset
|
||||
* Handle creating a new embedded Item for the actor using initial data defined in the HTML dataset
|
||||
* @param event - The originating click event
|
||||
*/
|
||||
protected onItemCreate(event: JQuery.ClickEvent): void {
|
||||
|
|
|
@ -97,12 +97,10 @@ export class DS4ItemSheet extends ItemSheet<ItemSheet.Options, DS4ItemSheetData>
|
|||
protected async _createActiveEffect(): Promise<ActiveEffect | undefined> {
|
||||
const createData = {
|
||||
label: "New Effect",
|
||||
changes: [],
|
||||
duration: {},
|
||||
transfer: true,
|
||||
icon: "icons/svg/aura.svg",
|
||||
};
|
||||
|
||||
return ActiveEffect.create(createData, { parent: this.item });
|
||||
return ActiveEffect.create({ ...createData }, { parent: this.item });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue