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,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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user