From 7b78e67b434e427b696a43a95b9bb6705da41ad8 Mon Sep 17 00:00:00 2001 From: bowser0000 Date: Tue, 7 Sep 2021 17:14:40 -0400 Subject: Make cooldown display work with mage cooldown reduction --- src/main/java/me/Danker/utils/Utils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/java/me/Danker/utils') 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 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; + } + } -- cgit