diff --git a/source/module/rolls/M5Roll.ts b/source/module/rolls/M5Roll.ts index c66c1fc..5e296a9 100644 --- a/source/module/rolls/M5Roll.ts +++ b/source/module/rolls/M5Roll.ts @@ -95,6 +95,7 @@ export class M5Roll { this.data.res.label = this.label; if ((game as Game).settings.get("midgard5", "automatedPP") && this.data.iType !== null) { if ((this.data.i.type === "language" || this.data.i.type === "general") && this.data.rolls[0].dice[0] >= 16) { + ui.notifications.notify(`Praxispunkt eingetragen für ${this.actor.items.get(this.id).name}`); this.actor.items.get(this.id).update({ system: { pp: this.data.i.pp + 1, @@ -102,6 +103,7 @@ export class M5Roll { }); } else if (this.data.rolls[0].dice[0] === 20) { if (this.data.i.type === "combat") { + ui.notifications.notify(`Praxispunkt eingetragen für ${this.actor.items.get(this.id).name}`); // Rolling through skill this.actor.items.get(this.id).update({ system: { @@ -109,6 +111,7 @@ export class M5Roll { }, }); } else if (this.data.iType === "weapon") { + ui.notifications.notify(`Praxispunkt eingetragen für ${this.actor.items.get(this.id).name}`); // Rolling through Weapon Item const skill = this.actor.items.get(this.data.i.skillId); skill.update({ @@ -117,6 +120,7 @@ export class M5Roll { }, }); } else if (this.data.iType === "defensiveWeapon") { + ui.notifications.notify(`Praxispunkt eingetragen für ${this.actor.items.get(this.id).name}`); // Rolling through defensiveWeapon Item const skill = this.actor.items.get(this.data.i.skillId); skill.update({ @@ -125,6 +129,7 @@ export class M5Roll { }, }); } else if (this.data.iType === "spell") { + ui.notifications.notify(`Praxispunkt eingetragen für ${this.data.i.process}`); // Rolling through Spell Item const klasse = this.actor.items.find((x) => x.type === "class" && x.system.equipped); klasse.update({ diff --git a/templates/sheets/character/spells.hbs b/templates/sheets/character/spells.hbs index fc21a24..063ee45 100644 --- a/templates/sheets/character/spells.hbs +++ b/templates/sheets/character/spells.hbs @@ -77,7 +77,6 @@ - {{#if (eq data.types.actor)}}