Преглед на файлове

Static things shouldn't use a maxbonuslevel from config

nossr50 преди 6 години
родител
ревизия
6f81cf7384
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. 12 0
      src/main/java/com/gmail/nossr50/util/random/RandomChanceSkillStatic.java

+ 12 - 0
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;
+    }
 }