forked from public/foundryvtt-wh4-lang-fr-fr
Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -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})`
|
||||
|
||||
Reference in New Issue
Block a user