Merge pull request #2663 from MinelinkNetwork/fix-child-skill-level

Remove hardcoded limit for parent skill levels when calculating child…
This commit is contained in:
t00thpick1 2015-11-04 15:45:00 -05:00
commit aaa69adb0c

View File

@ -355,7 +355,7 @@ public class PlayerProfile {
int sum = 0;
for (SkillType parent : parents) {
sum += Math.min(getSkillLevel(parent), 1000);
sum += Math.min(getSkillLevel(parent), parent.getMaxLevel());
}
return sum / parents.size();