aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeRaid <77941535+SeRaid743@users.noreply.github.com>2024-05-02 22:01:11 +1200
committerGitHub <noreply@github.com>2024-05-02 12:01:11 +0200
commitb6dd5ab3904df14b87d431f93d6226452a7385b7 (patch)
treecf8a7df29d84fe790cfb42a82ee9b62453be3693
parent073e90e3d7b2d01ffd877686343b2366eb890ce2 (diff)
downloadskyhanni-b6dd5ab3904df14b87d431f93d6226452a7385b7.tar.gz
skyhanni-b6dd5ab3904df14b87d431f93d6226452a7385b7.tar.bz2
skyhanni-b6dd5ab3904df14b87d431f93d6226452a7385b7.zip
added choc until next prestige (#1638)
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt
index f8ef3baf7..e18f6738d 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt
@@ -55,6 +55,14 @@ object ChocolateFactoryStats {
}
val prestigeEstimate = ChocolateAmount.PRESTIGE.formattedTimeUntilGoal(ChocolateFactoryAPI.chocolateForPrestige)
+ val chocolateUntilPrestigeCalculation =
+ ChocolateFactoryAPI.chocolateForPrestige - ChocolateAmount.PRESTIGE.chocolate()
+
+ var chocolateUntilPrestige = "§6${chocolateUntilPrestigeCalculation.addSeparators()}"
+
+ if (chocolateUntilPrestigeCalculation <= 0) {
+ chocolateUntilPrestige = "§aPrestige Avaliable"
+ }
val map = buildMap {
put(ChocolateFactoryStat.HEADER, "§6§lChocolate Factory Stats")
@@ -83,6 +91,10 @@ object ChocolateFactoryStats {
ChocolateFactoryStat.RAW_PER_SECOND,
"§eRaw Per Second: §6${profileStorage.rawChocPerSecond.addSeparators()}"
)
+ put(
+ ChocolateFactoryStat.CHOCOLATE_UNTIL_PRESTIGE,
+ "§eChocolate To Prestige: $chocolateUntilPrestige"
+ )
}
val text = config.statsDisplayList.filter { it.shouldDisplay() }.mapNotNull { map[it] }
@@ -132,6 +144,7 @@ object ChocolateFactoryStats {
TIME_TOWER("§eTime Tower: §62/3 Charges", { ChocolateFactoryTimeTowerManager.currentCharges() != -1 }),
TIME_TO_PRESTIGE("§eTime To Prestige: §61d 13h 59m 4s", { ChocolateFactoryAPI.currentPrestige != 5 }),
RAW_PER_SECOND("§eRaw Per Second: §62,136"),
+ CHOCOLATE_UNTIL_PRESTIGE("§eChocolate To Prestige: §65,851", { ChocolateFactoryAPI.currentPrestige != 5 }),
;
override fun toString(): String {