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,12 +1,12 @@
let spells = await warhammer.utility.findAllItems("spell", "Chargement des sorts", true);
let spells = await warhammer.utility.findAllItems("spell", "Loading Spells", true);
let choice = await ItemDialog.create(spells, 1);
if (choice[0])
{
this.script.scriptMessage(`Choisir @UUID[${choice[0].uuid}]{${choice[0].name}}`)
this.script.message(`Chose @UUID[${choice[0].uuid}]{${choice[0].name}}`)
let spell = (await fromUuid(choice[0].uuid)).toObject(); // Might be an index so retrieve item object for sure
setProperty(spell, "flags.wfrp4e.boonOfTzeentch", true);
foundry.utils.setProperty(spell, "flags.wfrp4e.boonOfTzeentch", true);
spell.system.wind.value = "Focalisation (Dhar)";
spell.system.memorized.value = true;
this.actor.createEmbeddedDocuments("Item", [spell], {fromEffect: this.effect.id})