diff --git a/source/module/rolls/M5Roll.ts b/source/module/rolls/M5Roll.ts index d47b4f4..6cda711 100644 --- a/source/module/rolls/M5Roll.ts +++ b/source/module/rolls/M5Roll.ts @@ -90,6 +90,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, @@ -97,6 +98,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: { @@ -104,6 +106,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({ @@ -112,6 +115,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({ @@ -120,6 +124,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)}}
{{localize "midgard5.pp"}} {{localize "midgard5.spells"}}
@@ -88,6 +87,7 @@
{{#each data.lernKostenZauber as |group name|}} + {{#unless (eq group.kosten 0)}} @@ -96,6 +96,7 @@ + {{/unless}} {{/each}}
@@ -104,5 +105,4 @@
- {{/if}}