Sync to v7.2.0
This commit is contained in:
12
scripts/xVYVegD692CCv8Yl.js
Normal file
12
scripts/xVYVegD692CCv8Yl.js
Normal file
@ -0,0 +1,12 @@
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "hard"}, appendTitle : ` - ${this.effect.name}`})
|
||||
await test.roll();
|
||||
|
||||
let newFortune = Math.max(0, this.actor.status.fortune.value - 1)
|
||||
this.actor.update({ "system.status.fortune.value": newFortune });
|
||||
|
||||
if (test.failed)
|
||||
{
|
||||
let char = this.effect.sourceActor.characteristics;
|
||||
let duration = Math.floor((char.wp.initial + char.wp.advances)/10) ;
|
||||
this.script.scriptMessage("<strong>Voleur du Destin</strong> a été appliqué à " + duration + " days");
|
||||
}
|
Reference in New Issue
Block a user