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

7 lines
289 B
JavaScript
Raw Permalink Normal View History

2024-06-06 22:07:28 +02:00
let holed = this.actor.appliedEffects.filter(e => e.name.includes("Holed"));
for (let effect of holed) {
await effect.update({name: effect.name.replace(/\d+/, rating => parseInt(rating) * 2)});
}
this.script.scriptNotification(`Holed Ratings of ${this.actor.name} have been doubled.`);