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,7 +1,7 @@
let test = await this.actor.setupCharacteristic("t", { appendTitle: ` - ${this.effect.name}`, fields: { difficulty: "challenging" } })
await test.roll();
let test = await this.actor.setupCharacteristic("t", { appendTitle: ` - ${this.effet.name}`, fields: { difficulty: "challenging" } })
await Test.roll();
if (test.failed)
if (Test.Échoué)
{
let ageAdded = Math.ceil(CONFIG.Dice.randomUniform() * 10) + Math.ceil(CONFIG.Dice.randomUniform() * 10)
let ws = Math.ceil(CONFIG.Dice.randomUniform() * 10)
@@ -15,15 +15,15 @@ if (test.failed)
let inline = `<a class="inline-roll" data-tooltip="@TT"><i class="fas fa-dice-d20"></i>@ROLL</a>`
let msg =
`<p><b>${this.actor.prototypeToken.name}</b> vieilli de ${inline.replace("@ROLL", ageAdded).replace("@TT", "2d10")} et perd</p>
<p>${inline.replace("@ROLL", ws).replace("@TT", "1d10")} <b>Capacité de Combat</b></p>
<p>${inline.replace("@ROLL", bs).replace("@TT", "1d10")} <b>Capacité de Tir</b></p>
`<p><b>${this.actor.prototypeToken.name}</b> ages by ${inline.replace("@ROLL", ageAdded).replace("@TT", "2d10")} and loses</p>
<p>${inline.replace("@ROLL", ws).replace("@TT", "1d10")} <b>Compétence de Combat</b></p>
<p>${inline.replace("@ROLL", bs).replace("@TT", "1d10")} <b>Compétence de Tir</b></p>
<p>${inline.replace("@ROLL", s).replace("@TT", "1d10")} <b>Force</b></p>
<p>${inline.replace("@ROLL", t).replace("@TT", "1d10")} <b>Endurance</b></p>
<p>${inline.replace("@ROLL", ag).replace("@TT", "1d10")} <b>Agilité</b></p>
<p>${inline.replace("@ROLL", dex).replace("@TT", "1d10")} <b>Dexterité</b></p>
<p>${inline.replace("@ROLL", dex).replace("@TT", "1d10")} <b>Dextérité</b></p>
`
this.script.scriptMessage(msg);
this.script.message(msg);
let characteristics = foundry.utils.duplicate(this.actor.system.characteristics)