Add all systems effects scripts

This commit is contained in:
2024-05-16 17:57:51 +02:00
parent b42df99b27
commit 0b286ac994
1282 changed files with 9990 additions and 384 deletions

View File

@ -0,0 +1,10 @@
if (args.sizeDiff <= -2 && args.opposedTest.attackerTest.result.critical)
args.damageMultiplier = Math.abs(args.sizeDiff)
let sBonusDiff = args.opposedTest.defenderTest.actor.characteristics.t.bonus - args.opposedTest.attackerTest.actor.characteristics.s.bonus
let weapon = args.opposedTest.attackerTest.item
if (sBonusDiff > 0 && weapon && weapon.damage.value.includes("SB"))
{
args.damage += sBonusDiff
args.breakdown.other.push({label : this.effect.name, value : sBonusDiff});
}