diff options
author | bowser0000 <bowser0000@gmail.com> | 2022-08-07 16:00:23 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2022-08-07 16:00:23 -0400 |
commit | 3482eff013fb83a7969847ee3acf1419438efc0f (patch) | |
tree | 0797c1f0814831b10cfb0d9708ec946c23e673f4 /src/main/java/me/Danker/utils/Utils.java | |
parent | 4431e9eddd09e4d43c42f6e541810c47c83efdcb (diff) | |
download | SkyblockMod-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.java | 10 |
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++) { |