From 6f81cf73845da2c1dc05db83835f9346cbecc5c9 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sun, 27 Jan 2019 22:01:55 -0800 Subject: [PATCH] Static things shouldn't use a maxbonuslevel from config --- .../nossr50/util/random/RandomChanceSkillStatic.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/util/random/RandomChanceSkillStatic.java b/src/main/java/com/gmail/nossr50/util/random/RandomChanceSkillStatic.java index 15c301290..0e00849f7 100644 --- a/src/main/java/com/gmail/nossr50/util/random/RandomChanceSkillStatic.java +++ b/src/main/java/com/gmail/nossr50/util/random/RandomChanceSkillStatic.java @@ -33,4 +33,16 @@ public class RandomChanceSkillStatic extends RandomChanceSkill { public double getProbabilityCap() { return probabilityCap; } + + /** + * The maximum bonus level for this skill + * This is when the skills level no longer increases the odds of success + * For example, a value of 25 will mean the success chance no longer grows after skill level 25 + * + * @return the maximum bonus from skill level for this skill + */ + @Override + public double getMaximumBonusLevelCap() { + return 100; + } }