aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils/Utils.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-08-07 16:00:23 -0400
committerbowser0000 <bowser0000@gmail.com>2022-08-07 16:00:23 -0400
commit3482eff013fb83a7969847ee3acf1419438efc0f (patch)
tree0797c1f0814831b10cfb0d9708ec946c23e673f4 /src/main/java/me/Danker/utils/Utils.java
parent4431e9eddd09e4d43c42f6e541810c47c83efdcb (diff)
downloadSkyblockMod-3482eff013fb83a7969847ee3acf1419438efc0f.tar.gz
SkyblockMod-3482eff013fb83a7969847ee3acf1419438efc0f.tar.bz2
SkyblockMod-3482eff013fb83a7969847ee3acf1419438efc0f.zip
Add xp + overflow to /skill command
Diffstat (limited to 'src/main/java/me/Danker/utils/Utils.java')
-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 4aa094d..8791a43 100644
--- a/src/main/java/me/Danker/utils/Utils.java
+++ b/src/main/java/me/Danker/utils/Utils.java
@@ -251,6 +251,16 @@ public class Utils {
}
return limit;
}
+
+ public static int skillLevelToXp(int level) {
+ int sum = 0;
+
+ for (int i = 1; i <= level; i++) {
+ sum += skillXPPerLevel[i];
+ }
+
+ return sum;
+ }
public static double xpToDungeonsLevel(double xp) {
for (int i = 0, xpAdded = 0; i < dungeonsXPPerLevel.length; i++) {