This commit is contained in:
2025-05-16 10:05:29 +02:00
parent 635d9e7525
commit b56b6e04cc
3 changed files with 25 additions and 19 deletions
+7 -7
View File
@@ -1,4 +1,4 @@
if (!this.item.name.includes("(") || this.item.system.tests.value.includes("(Sense)"))
if (!this.item.name.includes("(") || this.item.system.tests.value.includes("(Sinn)"))
{
let tests = this.item.system.tests.value
let name = this.item.name
@@ -12,12 +12,12 @@ if (!this.item.name.includes("(") || this.item.system.tests.value.includes("(Sen
else // If no sense specified, provide dialog choice
{
let choice = await ItemDialog.create(ItemDialog.objectToArray({
taste : "Taste",
sight : "Sight",
smell : "Smell",
hearing : "Hearing",
touch : "Touch"
}, this.item.img), 1, "Choose Sense");
taste : "Geschmack",
sight : "Sicht",
smell : "Geruch",
hearing : "Gehör",
touch : "Berührung"
}, this.item.img), 1, "Wähle Sinn");
if (choice[0])
{
name = `${name.split("(")[0].trim()} (${choice[0].name})`