foundryvtt-wh4-lang-fr-fr/scripts/S3Dev4hleOYqDNe9.js

16 lines
714 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
if (args.test.options.healWounds) {
if (args.test.succeeded)
{
let wounds = this.actor.characteristics.int.bonus + Number(args.test.result.SL)
if (args.test.options.fieldDressing && args.test.result.reversed)
{
wounds = this.actor.characteristics.int.bonus + Math.min(1, Number(args.test.result.SL))
}
args.test.result.woundsHealed = wounds
args.test.result.other.push(`<b>${this.actor.name}</b> guérit <b>${wounds}</b> Points de Blessures du patient.`)
2024-05-16 17:57:51 +02:00
}
else if (this.actor.characteristics.int.bonus + Number(args.test.result.SL) < 0)
{
args.test.result.other.push(`Le patient subit une @UUID[Compendium.wfrp4e-core.items.Item.1hQuVFZt9QnnbWzg]{Infection Mineure}.`)
2024-05-16 17:57:51 +02:00
}
}