Sync to v7.2.0

This commit is contained in:
2024-06-06 22:07:28 +02:00
parent e46d68b315
commit 2c5ff15830
180 changed files with 2323 additions and 0 deletions

View File

@ -0,0 +1,11 @@
if (args.test.options.healWounds) {
if (args.test.result.roll <= game.settings.get("wfrp4e", "automaticSuccess") || args.test.result.roll <= args.test.target) {
let wounds = this.actor.characteristics.int.bonus + ~~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> soigne <b>${wounds}</b> Blessures du patient.`)
}
else if (this.actor.characteristics.int.bonus + args.test.result.SL < 0)
args.test.result.other.push(`Le patient contracte un @UUID[Compendium.wfrp4e-core.items.Item.1hQuVFZt9QnnbWzg]{Infection Mineure}.`)
}