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

9 lines
369 B
JavaScript
Raw Normal View History

2024-06-06 22:07:28 +02:00
let animalCare = this.actor.itemTypes.skill.find(s => s.name === game.i18n.localize("NAME.AnimalCare"));
let animalTrainings = this.actor.itemTypes.skill.filter(s => s.name.includes(game.i18n.localize("NAME.AnimalTraining")));
if (animalCare)
animalCare.system.modifier.value += 20;
for (let training of animalTrainings) {
training.system.modifier.value += 30;
}