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

@@ -5,17 +5,17 @@ if (this.item.name.includes("(") && !this.item.name.toLowerCase().includes("(any
}
else
{
resistance = await ValueDialog.create({text : "Enter Resistance", title : "Resistance"})
resistance = await ValueDialog.create({text : "Entrez la Résistance", title : "Résistance"})
if (resistance)
{
this.item.updateSource({name : `${this.item.name.split("(")[0].trim()} (${resistance})`})
this.effect.updateSource({name : this.effect.name + ` (${resistance})`})
this.effet.updateSource({name : this.effet.name + ` (${resistance})`})
}
}
this.item.updateSource({"system.tests.value" : this.item.system.tests.value.replace("the associated Threat", resistance)})
this.item.updateSource({"system.tests.value" : this.item.system.Tests.value.replace("the associated Threat", resistance)})
if (resistance && !this.effect.name.includes("("))
if (resistance && !this.effet.name.includes("("))
{
this.effect.updateSource({name : this.effect.name += ` (${resistance})`})
}