Ajout de la commande /voyage et grosse MAJK de la commande /auberge

This commit is contained in:
2026-01-07 15:04:49 +01:00
parent c8119601d8
commit f525b6c07a
1329 changed files with 24138 additions and 4397 deletions

View File

@@ -7,14 +7,14 @@ if (this.item.name.includes("("))
group = this.item.parenthesesText
}
else
else
{
group = await ValueDialog.create({text : "Enter Hatred Group", title : "Hatred Group"})
group = await ValueDialog.create({text : "Entrez le Groupe de Haine", title : "Groupe de Haine"})
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})`})
this.item.updateSource({name : this.item.name + ` (${group})`, "system.tests.value" : this.item.system.Tests.value.replace("Group", group)})
this.effet.updateSource({name : this.effet.name + ` (${group})`})
}
data.name = data.name.replace("Target", group);
data.name = data.name.replace("Cible", group);
await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id});