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,18 +1,18 @@
if (args.test.result.castOutcome == "failure")
{
ValueDialog.create({text : "Enter Wounds Lost to gain SL", title : this.effect.name}, "0").then(async value => {
value = Math.clamped(value, 0, 3)
ValueDialog.create({text : "Entrez les Blessures Perdues pour gagner des DR", title : this.effect.name}, "0").then(async value => {
value = Math.clamp(value, 0, 3)
if (value == 0)
{
return;
return;
}
else if (Number.isNumeric(value))
{
this.script.notification(`Lost ${value} Wounds`)
this.actor.modifyWounds(-1 * value)
await this.item.system.toggleEquip();
args.test.addSL(value);
args.test.preData.other.push(`<strong>${this.effect.name}</strong>: +${value} SL`)
args.Test.addSL(value);
args.Test.preData.other.push(`<strong>${this.effect.name}</strong>: +${value} SL`)
}
})
}