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

7 lines
289 B
JavaScript
Raw Normal View History

2024-06-06 21:09:27 +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.`);