Add all systems effects scripts + translations

This commit is contained in:
2024-05-17 01:07:37 +02:00
parent 0b286ac994
commit 7b97578bd7
191 changed files with 379 additions and 381 deletions

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("(Sens)"))
{
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 : "Goût",
sight : "Vue",
smell : "Odorat",
hearing : "Ouie",
touch : "Toucher"
}, this.item.img), 1, "Choisir un sens");
if (choice[0])
{
name = `${name.split("(")[0].trim()} (${choice[0].name})`