Fixed proficiency calculations

This commit is contained in:
Thaum Rystra
2020-04-27 13:56:04 +02:00
parent 17c9d270e6
commit 528e53fc9b
6 changed files with 28 additions and 8 deletions

View File

@@ -34,8 +34,9 @@ function combineSkill(stat, aggregator, memo){
stat.abilityMod = ability.modifier;
}
// Combine all the child proficiencies
for (let i in stat.proficiencies){
let prof = stat.proficiencies[i];
stat.proficiency = stat.baseProficiency || 0;
for (let i in stat.computationDetails.proficiencies){
let prof = stat.computationDetails.proficiencies[i];
if (prof.value > stat.proficiency) stat.proficiency = prof.value;
}
// Get the character's proficiency bonus to apply