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

@@ -1,6 +1,6 @@
const chanties = await WFRP_Utility.findAll('wfrp4e-soc.chanty');
let choice = await ItemDialog.create(chanties, 1, "Choisissez Chanty");
if (choice.length) {
console.log(choice);
this.actor.createEmbeddedDocuments("Item", choice, {fromEffect: this.effect.id});
const chanties = await warhammer.utility.findAllItems('wfrp4e-soc.chanty', "Loading Chanties", true);
let choice = await ItemDialog.create(chanties, 1, {text : "Choisissez un Chant", title : this.effect.name});
if (choice.length)
{
this.actor.addEffectItems(choice.map(i => i.uuid), this.effect)
}