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

12 lines
235 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
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;
}