Neuanfang mit französischem Modul

This commit is contained in:
2025-05-05 23:25:00 +02:00
parent cf24ef97df
commit 3f74b8dfdd
3135 changed files with 38383 additions and 93206 deletions
-20
View File
@@ -1,20 +0,0 @@
let group
let item = await fromUuid("Compendium.wfrp4e-core.items.Item.5hH73j2NgPdsLCZN");
let data = item.toObject();
if (this.item.name.includes("("))
{
group = this.item.parenthesesText
}
else
{
group = await ValueDialog.create("Enter Hatred Group", "Hatred Group")
this.item.updateSource({name : this.item.name + ` (${group})`, "system.tests.value" : this.item.system.tests.value.replace("Group", group)})
this.effect.updateSource({name : this.effect.name + ` (${group})`})
}
data.name = data.name.replace("Target", group);
await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id});