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

12 lines
235 B
JavaScript

let key = this.item.system.location.key
let lostFingers = this.actor.flags.useless[key] || 0;
lostFingers += 1
this.actor.flags.useless[key] = lostFingers;
if (lostFingers >= 4)
{
this.actor.flags.useless[key[0] + "Arm"] = true;
}