5 lines
169 B
JavaScript
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;
|