diff --git a/src/sheets/item-sheet.mjs b/src/sheets/item-sheet.mjs index 8732ea6..1ed6cfd 100644 --- a/src/sheets/item-sheet.mjs +++ b/src/sheets/item-sheet.mjs @@ -88,8 +88,9 @@ export class M6ItemSheet extends api.HandlebarsApplicationMixin(sheets.ItemSheet event.preventDefault(); const currentInput = event.currentTarget; const value = currentInput.value; + const location = currentInput.name || currentInput.id; console.log("Feld verlassen! Aktueller Wert:", value); - this.item.update({ [`${currentInput.name}`]: value.split(/[\s,]+/) }); + this.item.update({ [`${location}`]: value.split(/[\s,]+/) }); } /* -------------------------------------------------- */ diff --git a/templates/item/waffen/eigenschaften.hbs b/templates/item/waffen/eigenschaften.hbs index 6aaf74a..43f445c 100644 --- a/templates/item/waffen/eigenschaften.hbs +++ b/templates/item/waffen/eigenschaften.hbs @@ -63,7 +63,7 @@

{{localize "Midgard6.Item.waffenmerkmale"}}

- +