Neuanfang mit französischem Modul

This commit is contained in:
2025-05-05 23:25:00 +02:00
parent cf24ef97df
commit 3f74b8dfdd
3135 changed files with 38383 additions and 93206 deletions
-11
View File
@@ -1,11 +0,0 @@
let injury = this.effect.itemTargets[0]
if (injury && this.effect.sourceTest.result.outcome == "success") {
let days = new Roll(injury.system.duration.value).roll( {async: false} ).total
let num = 1 + Number(this.effect.sourceTest.result.SL);
let roll = await new Roll(num+'d10').roll({async: false})
await roll.toMessage(this.script.getChatData())
let newDays = Math.max(days - roll.total, 1)
this.actor.updateEmbeddedDocuments("Item", [{_id: injury.id, 'system.duration.value': newDays} ])
let message = "Injury reduces to "+newDays+" (-" + roll.total + ") instead of "+days
this.script.scriptMessage(message)
}