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,8 +1,8 @@
let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effect.name}`})
await test.roll();
let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effet.name}`})
await Test.roll();
let opposedResult = test.opposedMessages[0]?.getOppose()?.resultMessage?.getOpposedTest()?.result
let opposedResult = Test.opposedMessages[0]?.system.opposedHandler?.resultMessage?.system.opposedTest?.result
if (opposedResult?.winner == "attacker")
{
@@ -10,9 +10,7 @@ if (opposedResult?.winner == "attacker")
if (spells.length)
{
let chosen = spells[Math.floor(CONFIG.Dice.randomUniform() * spells.length)]
this.script.scriptMessage(`Ne se rappelle plus du sort <strong>${chosen.name}</strong>`)
chosen.update({name : chosen.name += " (LOST)"})
this.script.message(`Perd l'accès à <strong>${chosen.name}</strong>`)
chosen.update({name : chosen.name += " (PERDU)"})
}
}