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

5 lines
169 B
JavaScript

let rating = parseInt(this.effect.name.match(/\d+/)?.[0]) || 1;
let holed = this.actor.flags.holed || {holed: 0};
holed.holed += rating;
this.actor.flags.holed = holed;