Correction sur calcul du rang
All checks were successful
Release Creation / build (release) Successful in 51s

This commit is contained in:
2026-01-21 10:55:29 +01:00
parent f445741eda
commit 25b6e30aa8
68 changed files with 225 additions and 223 deletions

View File

@@ -406,7 +406,7 @@ export class HeritiersActor extends Actor {
// Sum up niveau for each profil
for (let item of this.items) {
if (item.type == "competence" && item.system.profil) {
if (item.type == "competence" && item.system.profil && item.system.categorie == "utile") {
let profil = item.system.profil.toLowerCase()
if (competencesRangs.hasOwnProperty(profil)) {
competencesRangs[profil] += item.system.niveau