forked from public/foundryvtt-wh4-lang-fr-fr
Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
let test = this.effect.sourceTest;
|
||||
if (test.failed && (test.result.roll % 11 == 0 || test.result.roll == 100))
|
||||
{
|
||||
let points = await new Roll("1d10").roll();
|
||||
let points = await new Roll("1d10").roll({allowInteractive : false});
|
||||
game.dice3d?.showForRoll(points)
|
||||
this.actor.update({"system.status.corruption.value" : this.actor.system.status.corruption.value + points.total})
|
||||
this.script.scriptMessage(`Reçoit ${points.total} Point de Corruption`)
|
||||
this.script.message(`Gain de ${points.total} Corruption`)
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
let points = this.effect.sourceTest.result.overcast.usage.other.current;
|
||||
let points = this.effet.sourceTest.result.overcast.usage.other.current;
|
||||
this.actor.update({"system.status.corruption.value" : this.actor.system.status.corruption.value - points})
|
||||
this.script.scriptMessage(`Perd ${points} Point de Corruption`)
|
||||
this.script.message(`Perd de ${points} de Corruption`)
|
||||
}
|
||||
Reference in New Issue
Block a user