From bd683b910aaebf830aa02eb5a91b5a0a2c6e5fe5 Mon Sep 17 00:00:00 2001 From: bowser0000 Date: Mon, 7 Mar 2022 13:03:44 -0500 Subject: Add cata 99 and class average to /dungeons --- src/main/java/me/Danker/utils/Utils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/me/Danker/utils/Utils.java') 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) { -- cgit