forked from public/foundryvtt-wh4-lang-fr-fr
Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user