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

9 lines
372 B
JavaScript
Raw Permalink Normal View History

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