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,8 +1,8 @@
let spells = await warhammer.utility.findAllItems("spell", "Chargement des sorts");
spells = spells.filter(s => ["feu", "cieux", "bêtes", "ombres", "lumière", "vie", "mort", "métal"].includes(s.system.lore.value)).sort((a, b) => a.system.lore.value > b.system.lore.value ? 1 : -1)
let spells = await warhammer.utility.findAllItems("spell", "Chargement des Sorts", true, ["system.lore.value"])
spells = spells.filter(s => ["fire", "heavens", "beasts", "shadow", "light", "life", "death", "metal"].includes(s.system.lore.value)).sort((a, b) => a.system.lore.value > b.system.lore.value ? 1 : -1)
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.actor.createEmbeddedDocuments("Item", choice, {fromEffect: this.effect.id})
this.actor.addEffectItems(choice.map(i => i.uuid), this.effect)
}