aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-09-14 22:57:57 -0400
committerbowser0000 <bowser0000@gmail.com>2020-09-14 22:57:57 -0400
commit1e82de1cfd719c72f4c0c6ffc541fe6da5fad8ab (patch)
tree1dc3b0a395d80c74037a4101ba01265c4e7f4d43 /src/main/java/me/Danker/utils
parent3198b59936c0221b258fa6e97edaf33eed336ee7 (diff)
downloadSkyblockMod-1e82de1cfd719c72f4c0c6ffc541fe6da5fad8ab.tar.gz
SkyblockMod-1e82de1cfd719c72f4c0c6ffc541fe6da5fad8ab.tar.bz2
SkyblockMod-1e82de1cfd719c72f4c0c6ffc541fe6da5fad8ab.zip
Add expertise kills in fishing rod lore
Diffstat (limited to 'src/main/java/me/Danker/utils')
-rw-r--r--src/main/java/me/Danker/utils/Utils.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java
index 67f8439..3c213a9 100644
--- a/src/main/java/me/Danker/utils/Utils.java
+++ b/src/main/java/me/Danker/utils/Utils.java
@@ -26,6 +26,7 @@ public class Utils {
75000, 100000, 200000, 300000, 400000, 500000, 600000, 700000, 800000, 900000, 1000000, 1100000,
1200000, 1300000, 1400000, 1500000, 1600000, 1700000, 1800000, 1900000, 2000000, 2100000, 2200000,
2300000, 2400000, 2500000, 2600000, 2750000, 2900000, 3100000, 3400000, 3700000, 4000000};
+ static int[] expertiseKills = {50, 100, 250, 500, 1000, 2500, 5500, 10000, 15000};
public static int getItems(String item) {
Minecraft mc = Minecraft.getMinecraft();
@@ -187,4 +188,13 @@ public class Utils {
return 50D;
}
+ public static int expertiseKillsLeft(int kills) {
+ for (int i = 0; i < expertiseKills.length; i++) {
+ if (kills < expertiseKills[i]) {
+ return expertiseKills[i] - kills;
+ }
+ }
+ return -1;
+ }
+
}