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,14 +0,0 @@
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields: {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`, context : {failure : "Souffre d'Irrationnalité Effrayante"}})
await test.roll();
if (test.failed)
{
msg = `<p>@UUID[${this.effect.sourceItem.uuid}]{Irrationnalité Effrayante} Lancez: <a class="inline-roll"><i class="fas fa-dice-d20"></i>${Math.ceil(CONFIG.Dice.randomUniform() * 10)}</a></p>`
if (test.result.roll % 11 == 0 || test.result.roll == 100)
{
msg += `<p><b>${this.actor.prototypeToken.name}</b> reçoit également 1 Point de Corruption. Si il subit une mutation, il doit la déterminer sur la table des @Table[mutatemental]{Mutations Mentales}.</p>`
let newCorruption = Number(this.actor.status.corruption.value) + 1
this.actor.update({"system.status.corruption.value" : newCorruption})
}
this.script.scriptMessage(msg);
}