From 0362e8a043b438306bf0eb249240e846a86a8d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soup=C3=A9?= Date: Mon, 6 May 2024 12:48:47 +0200 Subject: [PATCH] Fixing experience calculation --- modules/data/actors/WFRP3eCharacterDataModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/data/actors/WFRP3eCharacterDataModel.js b/modules/data/actors/WFRP3eCharacterDataModel.js index 0bb037a..5f244df 100644 --- a/modules/data/actors/WFRP3eCharacterDataModel.js +++ b/modules/data/actors/WFRP3eCharacterDataModel.js @@ -184,7 +184,7 @@ export default class WFRP3eCharacterDataModel extends foundry.abstract.TypeDataM (career.system.advances.talent.length > 0 ? 1 : 0) + (career.system.advances.skill.length > 0 ? 1 : 0) + (career.system.advances.wound.length > 0 ? 1 : 0) + - (career.system.advances.open.filter(openAdvance => openAdvance.length > 0)).length + + (career.system.advances.open.filter(openAdvance => openAdvance?.length > 0)).length + career.system.advances.careerTransition.cost + (career.system.advances.dedicationBonus.length > 0 ? 1 : 0) + Object.values(career.system.advances.nonCareer)