Files
foundryvtt-wh4-lang-fr-fr/scripts/dxt3p07po06J9fO1.js

14 lines
270 B
JavaScript

const metal = () => {
for (const [key, loc] of Object.entries(this.actor.armour)) {
if (!loc.layers) continue;
for (const layer of loc.layers) {
if (layer.metal)
return true;
}
}
return false;
};
args.fields.slBonus -= metal() ? 2 : 1;