Fix scripts !

This commit is contained in:
2026-01-29 11:43:28 +01:00
parent 0e8237c233
commit 752a6701c0
104 changed files with 195 additions and 193 deletions

View File

@@ -3,19 +3,19 @@ if (this.item.name.includes("(") && !this.item.name.toLowerCase().includes("(any
{
resistance = this.item.parenthesesText
}
else
else
{
resistance = await ValueDialog.create({text : "Entrez la Résistance", title : "Résistance"})
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.effet.updateSource({name : this.effet.name + ` (${resistance})`})
this.effect.updateSource({name : this.effect.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("la Menace associée", resistance) || resistance})
if (resistance && !this.effet.name.includes("("))
if (resistance && !this.effect.name.includes("("))
{
this.effect.updateSource({name : this.effect.name += ` (${resistance})`})
}