diff options
author | bowser0000 <bowser0000@gmail.com> | 2022-03-07 13:03:44 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2022-03-07 13:03:44 -0500 |
commit | bd683b910aaebf830aa02eb5a91b5a0a2c6e5fe5 (patch) | |
tree | c79128a19dcd9a32ea74be6d7a1a94d39a39d466 /src/main/java/me/Danker/utils/Utils.java | |
parent | 301f4be3cda326c7d97aeffee7df3b40568ff362 (diff) | |
download | SkyblockMod-bd683b910aaebf830aa02eb5a91b5a0a2c6e5fe5.tar.gz SkyblockMod-bd683b910aaebf830aa02eb5a91b5a0a2c6e5fe5.tar.bz2 SkyblockMod-bd683b910aaebf830aa02eb5a91b5a0a2c6e5fe5.zip |
Add cata 99 and class average to /dungeons
Diffstat (limited to 'src/main/java/me/Danker/utils/Utils.java')
-rw-r--r-- | src/main/java/me/Danker/utils/Utils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java index 30e8249..c9021f7 100644 --- a/src/main/java/me/Danker/utils/Utils.java +++ b/src/main/java/me/Danker/utils/Utils.java @@ -252,10 +252,10 @@ public class Utils { xpAdded += dungeonsXPPerLevel[i]; if (xp < xpAdded) { double level = (i - 1) + (xp - (xpAdded - dungeonsXPPerLevel[i])) / dungeonsXPPerLevel[i]; - return (double) Math.round(level * 100) / 100; + return (double) Math.round(level * 100D) / 100; } } - return 50D; + return 50D + MathHelper.clamp_double(Math.round((xp - 569809640D) / 200000000D * 100D) / 100D, 0D, 49D); } public static int expertiseKillsLeft(int kills) { |