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

@@ -8,12 +8,12 @@ if (type == "cold")
if (type == "corrosion")
{
let damageItems = await Dialog.confirm({title : this.item.name, content : `<p>Damage all Items carried?</p>`})
let damageItems = await foundry.applications.api.DialogV2.confirm({window: {title : this.item.name}, content : `<p>Endommage tous les objets portés ?</p>`})
if (damageItems)
{
let msg = ``
let weapons = args.actor.itemTypes.weapon.filter(i => i.isEquipped);
let armour = args.actor.itemTypes.armour.filter(i => i.isEquipped);
let armour = args.actor.itemTags.armour.filter(i => i.isEquipped);
let trappings = args.actor.itemTypes.trapping.filter(i => i.isEquipped);
for(let item of weapons)
{
@@ -21,21 +21,21 @@ if (type == "corrosion")
{
await item.system.damageItem(1, "shield");
}
else
else
{
await item.system.damageItem(1);
}
msg += `<p><strong>${item.name}</strong> damage by 1</p>`
msg += `<p><strong>${item.name}</strong> endommagé de 1</p>`
}
for(let item of armour)
{
await item.system.damageItem(1);
msg += `<p><strong>${item.name}</strong> damage by 1</p>`
msg += `<p><strong>${item.name}</strong> endommagé de 1</p>`
}
for(let item of trappings)
{
await item.system.damageItem(1);
msg += `<p><strong>${item.name}</strong> damage by 1</p>`
msg += `<p><strong>${item.name}</strong> endommagé de 1</p>`
}
if (msg)
{
@@ -62,5 +62,5 @@ if (type == "poison")
if (type == "warpfire")
{
await this.actor.corruptionDialog("moderate")
this.actor.applyEffect({effectUuids : this.item.effects.getName("Warpfire").uuid})
this.actor.applyEffect({effectUuids : this.item.effects.getName("Warpfire").uuid})
}