foundryvtt-wh4-lang-fr-fr/scripts/zk44dFEGkylB7kW6.js

9 lines
372 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let modifier; let target = args.data.targets[0]
if (target.actor.details.size.value == "tiny")
modifier = 30
if (target.actor.details.size.value == "ltl")
modifier = 20
if (target.actor.details.size.value == "sml")
modifier = 10
args.fields.modifier += (modifier || 0); // Offset size modifier