Ajout de la commande /voyage et grosse MAJK de la commande /auberge

This commit is contained in:
2026-01-07 15:04:49 +01:00
parent c8119601d8
commit f525b6c07a
1329 changed files with 24138 additions and 4397 deletions

View File

@@ -1,10 +1,10 @@
if (!this.item.name.includes("(") || this.item.system.tests.value.includes("(Sens)"))
if (!this.item.name.includes("(") || this.item.system.Tests.value.includes("(Sense)") || this.item.system.Tests.value.toLowerCase().includes("(any)"))
{
let tests = this.item.system.tests.value
let Tests = this.item.system.Tests.value
let name = this.item.name
// If name already specifies, make sure tests value reflects that
if (name.includes("("))
// If name already specifies, make sure Tests value reflects that
if (name.includes("(") && !name.toLowerCase().includes("(any)"))
{
let sense = name.split("(")[1].split(")")[0]
tests = `${tests.split("(")[0].trim()} (${sense})`;
@@ -15,9 +15,9 @@ if (!this.item.name.includes("(") || this.item.system.tests.value.includes("(Sen
taste : "Goût",
sight : "Vue",
smell : "Odorat",
hearing : "Ouie",
hearing : "Ouïe",
touch : "Toucher"
}, this.item.img), 1, "Choisir un sens");
}, this.item.img), 1, {title : this.item.name, text : "Choisissez un Sens"});
if (choice[0])
{
name = `${name.split("(")[0].trim()} (${choice[0].name})`