aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils/Utils.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-09-07 17:14:40 -0400
committerbowser0000 <bowser0000@gmail.com>2021-09-07 17:14:40 -0400
commit7b78e67b434e427b696a43a95b9bb6705da41ad8 (patch)
tree100fcee3e40d931eebded09297a3a02577aa8286 /src/main/java/me/Danker/utils/Utils.java
parentf64d52798778df323f4e7778fff98e240cde4e83 (diff)
downloadSkyblockMod-7b78e67b434e427b696a43a95b9bb6705da41ad8.tar.gz
SkyblockMod-7b78e67b434e427b696a43a95b9bb6705da41ad8.tar.bz2
SkyblockMod-7b78e67b434e427b696a43a95b9bb6705da41ad8.zip
Make cooldown display work with mage cooldown reduction
Diffstat (limited to 'src/main/java/me/Danker/utils/Utils.java')
-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;
+ }
+
}