aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt11
1 files changed, 4 insertions, 7 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 f067146bf..87aa21023 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
@@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.events.SecondPassedEvent
import at.hannibal2.skyhanni.utils.ClipboardUtils
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
+import at.hannibal2.skyhanni.utils.NumberUtil.toRoman
import at.hannibal2.skyhanni.utils.RenderUtils.renderRenderables
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import at.hannibal2.skyhanni.utils.TimeUtils.format
@@ -71,7 +72,7 @@ object ChocolateFactoryStats {
val upgradeAvailableAt = ChocolateAmount.CURRENT.formattedTimeUntilGoal(profileStorage.bestUpgradeCost)
val map = buildMap {
- put(ChocolateFactoryStat.HEADER, "§6§lChocolate Factory Stats")
+ put(ChocolateFactoryStat.HEADER, "§6§lChocolate Factory ${ChocolateFactoryAPI.currentPrestige.toRoman()}")
put(ChocolateFactoryStat.CURRENT, "§eCurrent Chocolate: §6${ChocolateAmount.CURRENT.formatted}")
put(ChocolateFactoryStat.THIS_PRESTIGE, "§eThis Prestige: §6${ChocolateAmount.PRESTIGE.formatted}")
@@ -122,12 +123,8 @@ object ChocolateFactoryStats {
tips = listOf("§bCopy to Clipboard!"),
onClick = {
val list = text.toMutableList()
- val titleHeader = list.indexOf("§6§lChocolate Factory Stats")
- if (titleHeader != -1) {
- list[titleHeader] = "${LorenzUtils.getPlayerName()}'s Chocolate Factory Stats"
- } else {
- list.add(0, "${LorenzUtils.getPlayerName()}'s Chocolate Factory Stats")
- }
+ list.add(0, "${LorenzUtils.getPlayerName()}'s Chocolate Factory Stats")
+
ClipboardUtils.copyToClipboard(list.joinToString("\n") { it.removeColor() })
}
))