Merge branch 'master' into 004_equipment_tracking

This commit is contained in:
Gesina Schwalbe 2020-12-29 23:09:16 +01:00
commit f2724a13a1
6 changed files with 12 additions and 7 deletions

View file

@ -59,7 +59,7 @@ export class DS4ItemSheet extends ItemSheet<DS4ItemDataType, DS4Item> {
html.find(".effect-edit").on("click", (ev) => {
const li = $(ev.currentTarget).parents(".effect");
console.log(li.data("effectId"));
const effect = this.item["effects"].get(li.data("effectId")); // TODO: replace ["..."]
const effect = this.item.effects.get(li.data("effectId"));
effect.sheet.render(true);
});

View file

@ -1,10 +1,12 @@
import { DS4Actor } from "../actor/actor";
import { DS4ActorDataType } from "../actor/actor-data";
import { DS4ItemDataType } from "./item-data";
/**
* Extend the basic Item with some very simple modifications.
* @extends {Item}
*/
export class DS4Item extends Item<DS4ItemDataType> {
export class DS4Item extends Item<DS4ItemDataType, DS4ActorDataType, DS4Actor> {
/**
* Augment the basic Item data model with additional dynamic data.
*/