From 5f21efb1cd94ffb4caee977f4204317e64045586 Mon Sep 17 00:00:00 2001 From: Byteflux Date: Sun, 16 Aug 2015 00:35:22 -0700 Subject: [PATCH] Remove hardcoded limit for parent skill levels when calculating child skill level --- .../java/com/gmail/nossr50/datatypes/player/PlayerProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java index 689801d2f..b55cfd98b 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java @@ -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();