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,9 +1,9 @@
let spells = await warhammer.utility.findAllItems("spell", "Chargement des sorts");
let spells = await warhammer.utility.findAllItems("spell", "Chargement des sorts", true, ["system.lore.value"])
spells = spells.filter(s => ["slaanesh"].includes(s.system.lore.value))
let choice = await ItemDialog.create(spells, 1, "Choisir un sort");
let choice = await ItemDialog.create(spells, 1, {text : "Choisissez un Sort", title : this.effect.name});
if (choice[0])
{
this.item.updateSource({name : this.item.name + ` (${choice[0].name})`})
this.actor.createEmbeddedDocuments("Item", choice, {fromEffect: this.effect.id})
this.actor.addEffectItems(choice.map(i => i.uuid), this.effect)
}