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 test = await this.actor.setupSkill("Résistance", {fields : {difficulty : "difficult", appendTitle : ` - ${this.effect.name}`}});
await test.roll();
if (test.failed)
await Test.roll();
if (Test.Échoué)
{
await this.actor.addCondition("blinded");
}
let msg = ``
let armour = args.actor.itemTypes.armour.filter(i => i.system.isMetal && i.system.isEquipped);
let armour = args.actor.itemTags.armour.filter(i => i.system.isMetal && i.system.isEquipped);
for(let item of armour)
{
for(let key in item.system.AP)
@@ -15,9 +15,9 @@ for(let item of armour)
let damage = Math.floor(AP / 2);
await item.system.damageItem(damage, [key]);
}
msg += `<p><strong>${item.name}</strong> PA divisé par 2</p>`
msg += `<p><strong>${item.name}</strong> PA réduit de moitié</p>`
}
if (msg)
{
this.script.scriptMessage(msg, {speaker : {alias : args.actor.name}});
this.script.message(msg, {speaker : {alias : args.actor.name}});
}