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