forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
13
reference_scripts/g0SzfsLyW7aD2F19.js
Normal file
13
reference_scripts/g0SzfsLyW7aD2F19.js
Normal file
@ -0,0 +1,13 @@
|
||||
if (this.item.name.includes("(") && this.item.system.tests.value.includes("(Social Group)"))
|
||||
{
|
||||
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("("))
|
||||
{
|
||||
let group = name.split("(")[1].split(")")[0]
|
||||
tests = `${tests.split("(")[0].trim()} (${group})`
|
||||
}
|
||||
this.item.updateSource({name, "system.tests.value" : tests})
|
||||
}
|
Reference in New Issue
Block a user