Sync to v7.2.0
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
if (this.item.name.includes("(") && this.item.system.tests.value.includes("(Social Group)"))
|
||||
if (this.item.system.tests.value.includes("(Social Group)"))
|
||||
{
|
||||
let tests = this.item.system.tests.value
|
||||
let name = this.item.name
|
||||
@ -9,5 +9,14 @@ if (this.item.name.includes("(") && this.item.system.tests.value.includes("(Soci
|
||||
let group = name.split("(")[1].split(")")[0]
|
||||
tests = `${tests.split("(")[0].trim()} (${group})`
|
||||
}
|
||||
else if (!name.includes("("))
|
||||
{
|
||||
let value = await ValueDialog.create("Enter Etiquette Group", this.effect.name);
|
||||
if (value)
|
||||
{
|
||||
name = this.item.name + ` (${value})`;
|
||||
tests = this.item.system.tests.value.replace("Social Group", value);
|
||||
}
|
||||
}
|
||||
this.item.updateSource({name, "system.tests.value" : tests})
|
||||
}
|
Reference in New Issue
Block a user