12 lines
235 B
JavaScript
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;
|
||
|
}
|