aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils/Utils.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-09-03 01:03:59 -0400
committerbowser0000 <bowser0000@gmail.com>2020-09-03 01:03:59 -0400
commit6921e6b5804bebcdabd0a05f187273f005b58bea (patch)
treeeae0be5b84710f41b6f3b7cdfbab5812bb5d4f29 /src/main/java/me/Danker/utils/Utils.java
parent968037478801709042497c409f06aed6c70949b0 (diff)
downloadSkyblockMod-6921e6b5804bebcdabd0a05f187273f005b58bea.tar.gz
SkyblockMod-6921e6b5804bebcdabd0a05f187273f005b58bea.tar.bz2
SkyblockMod-6921e6b5804bebcdabd0a05f187273f005b58bea.zip
Add (untested) coins spent in dungeons
Diffstat (limited to 'src/main/java/me/Danker/utils/Utils.java')
-rw-r--r--src/main/java/me/Danker/utils/Utils.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java
index 2dfa9c3..67f8439 100644
--- a/src/main/java/me/Danker/utils/Utils.java
+++ b/src/main/java/me/Danker/utils/Utils.java
@@ -171,6 +171,12 @@ public class Utils {
return timeFormatted;
}
+ public static String getMoneySpent(double coins) {
+ double coinsSpentMillions = coins / 1000000D;
+ coinsSpentMillions = Math.floor(coinsSpentMillions * 100D) / 100D;
+ return coinsSpentMillions + "M";
+ }
+
public static double xpToSkillLevel(double xp) {
for (int i = 0, xpAdded = 0; i < skillXPPerLevel.length; i++) {
xpAdded += skillXPPerLevel[i];