foundryvtt-wh4-lang-fr-fr/reference_scripts/qAEZgtu5CrfUkxhx.js

16 lines
621 B
JavaScript
Raw Permalink Normal View History

if (args.test.options.staunchBleeding)
{
if (args.test.succeeded)
{
let staunch = Number(args.test.result.SL) + 1
if (args.test.options.fieldDressing && args.test.result.reversed)
{
staunch = Math.min(1, Number(args.test.result.SL)) + 1
}
args.test.result.other.push(`<b>${this.actor.name}</b> removed <b>${staunch}</b> Bleeding conditions from the patient.`)
}
else if (this.actor.characteristics.int.bonus + Number(args.test.result.SL) < 0)
{
args.test.result.other.push(`The patient contracts a @UUID[Compendium.wfrp4e-core.items.Item.1hQuVFZt9QnnbWzg]{Minor Infection}.`)
}
}