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,24 +1,11 @@
let choice = await Dialog.wait({
title: this.effect.name,
content: `<p><strong>${this.effect.name}</strong>: Est-ce que l'attaque magique ou à distance provient de l'extérieur du Dome?</p>`,
buttons: {
yes: {
label: "Oui",
callback: () => {
return true;
}
},
no: {
label: "Non",
callback: () => {
return false;
}
}
}
})
if (choice)
if (!args.opposedTest.attackerTest.item?.system?.isMelee)
{
args.ward = 6;
}
let choice = await foundry.applications.api.DialogV2.confirm({ window: { title: this.effect.name }, content: `<p><strong>${this.effect.name}</strong>: Is this a ranged or magical attack that orignates outside the Dome?</p>` })
if (choice)
{
args.ward = 6;
}
}