Small cleanup

This commit is contained in:
Johannes Loher 2021-07-01 04:24:51 +02:00
parent f26d75b56f
commit 836e57347f
2 changed files with 3 additions and 5 deletions

View file

@ -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 * @param event - The originating click event
*/ */
protected onItemCreate(event: JQuery.ClickEvent): void { protected onItemCreate(event: JQuery.ClickEvent): void {

View file

@ -97,12 +97,10 @@ export class DS4ItemSheet extends ItemSheet<ItemSheet.Options, DS4ItemSheetData>
protected async _createActiveEffect(): Promise<ActiveEffect | undefined> { protected async _createActiveEffect(): Promise<ActiveEffect | undefined> {
const createData = { const createData = {
label: "New Effect", label: "New Effect",
changes: [], icon: "icons/svg/aura.svg",
duration: {},
transfer: true,
}; };
return ActiveEffect.create(createData, { parent: this.item }); return ActiveEffect.create({ ...createData }, { parent: this.item });
} }
} }