2024-05-16 17:57:51 +02:00
|
|
|
if (args.test.options.diceman && args.test.succeeded)
|
|
|
|
{
|
|
|
|
|
|
|
|
let SL = Math.floor(args.test.target / 10) - Math.floor(args.test.result.roll / 10)
|
|
|
|
let ones = Number(args.test.result.roll.toString().split("").pop())
|
|
|
|
|
|
|
|
if (ones > SL)
|
2024-05-17 01:07:37 +02:00
|
|
|
args.test.result.other.push(`<span class="hide-option"><b>${this.effect.name}</b>: ${ones + args.test.successBonus + args.test.slBonus} DR</span>`)
|
2024-05-16 17:57:51 +02:00
|
|
|
}
|