Ajout comp libres
All checks were successful
Release Creation / build (release) Successful in 1m13s

This commit is contained in:
2025-02-25 21:29:52 +01:00
parent caedcf5e21
commit c24f4fe502
52 changed files with 172 additions and 140 deletions

View File

@ -64,6 +64,14 @@ export class TeDeumActor extends Actor {
super._preUpdate(changed, options, user);
}
getCompetenceScore(compName) {
let competence = this.items.find(item => item.type == "competence" && item.name.toLowerCase() == compName.toLowerCase())
if (competence) {
return competence.system.score
}
return 0
}
/* -------------------------------------------- */
_onUpdate(changed, options, userId) {