aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/Danker/utils')
-rw-r--r--src/main/java/me/Danker/utils/Utils.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java
index f7ebad6..81a32af 100644
--- a/src/main/java/me/Danker/utils/Utils.java
+++ b/src/main/java/me/Danker/utils/Utils.java
@@ -444,7 +444,6 @@ public class Utils {
List<String> tooltip = item.getTooltip(player, false);
for (String line : tooltip) {
- System.out.println(line);
if (line.contains(EnumChatFormatting.GOLD + "Ability: ")) {
if (line.contains(EnumChatFormatting.GOLD + "Ability: " + ability)) {
foundAbility = true;
@@ -463,4 +462,8 @@ public class Utils {
return 0;
}
+ public static double getCooldownReductionFromLevel(int level) {
+ return (Math.floor(level / 2D) + 25) / 100D;
+ }
+
}