Add all systems effects scripts + translations

This commit is contained in:
2024-05-17 12:46:44 +02:00
parent 039df5c10a
commit a308181834
1421 changed files with 9940 additions and 547 deletions

View File

@ -0,0 +1,21 @@
let resistance
if (this.item.name.includes("("))
{
resistance = this.item.parenthesesText
}
else
{
resistance = await ValueDialog.create("Enter Resistance", "Resistance")
if (resistance)
{
this.item.updateSource({name : this.item.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)})
if (resistance && !this.effect.name.includes("("))
{
this.effect.updateSource({name : this.effect.name += ` (${resistance})`})
}