diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-25 03:32:31 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-25 03:32:31 +0100 |
commit | 0ee3f2095cabddbf85016e3a5eee9cee4435d16b (patch) | |
tree | eb90d71cc88d9b96133fde7d8849c84f65380660 /src/main/java/at/hannibal2/skyhanni/features | |
parent | d523de1e3e4e39bd55d1b1426a4ead961ffcfa69 (diff) | |
download | skyhanni-0ee3f2095cabddbf85016e3a5eee9cee4435d16b.tar.gz skyhanni-0ee3f2095cabddbf85016e3a5eee9cee4435d16b.tar.bz2 skyhanni-0ee3f2095cabddbf85016e3a5eee9cee4435d16b.zip |
format coin numbers
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
5 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingProfitTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingProfitTracker.kt index fd097d68b..d5433c9bf 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingProfitTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingProfitTracker.kt @@ -116,7 +116,7 @@ object FishingProfitTracker { val profitPerCatch = profit / data.totalCatchAmount val profitPerCatchFormat = NumberUtil.format(profitPerCatch) - val text = "§eTotal Profit: $profitPrefix$profitFormat" + val text = "§eTotal Profit: $profitPrefix$profitFormat coins" addAsSingletonList(Renderable.hoverTips(text, listOf("§7Profit per catch: $profitPrefix$profitPerCatchFormat"))) tracker.addPriceFromButton(this) diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt index 42b22741b..0f472aafa 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt @@ -126,11 +126,11 @@ class ChestValue { val textAmount = " §7x$amount:" val width = Minecraft.getMinecraft().fontRendererObj.getStringWidth(textAmount) val name = "${stack.displayName.reduceStringLength((config.nameLength - width), ' ')} $textAmount" - val price = "§b${(total).formatPrice()}" + val price = "§6${(total).formatPrice()}" val text = if (config.alignedDisplay) "$name $price" else - "${stack.displayName} §7x$amount: §b${total.formatPrice()}" + "${stack.displayName} §7x$amount: §6${total.formatPrice()}" newDisplay.add(buildList { val renderable = Renderable.hoverTips( text, @@ -144,7 +144,7 @@ class ChestValue { }) rendered++ } - newDisplay.addAsSingletonList("§6Total value : §b${totalPrice.formatPrice()}") + newDisplay.addAsSingletonList("§aTotal value: §6${totalPrice.formatPrice()} coins") } private fun sortedList() = when (config.sortingType) { @@ -197,7 +197,7 @@ class ChestValue { val key = "$internalName+$total" if (stack.item == Items.enchanted_book) total /= 2 - list.add("§aTotal: §6§l${total.formatPrice()}") + list.add("§aTotal: §6§l${total.formatPrice()} coins") if (total == 0.0) continue val item = chestItems.getOrPut(key) { Item(mutableListOf(), 0, stack, 0.0, list) diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt index a4fe36fdc..87394161f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt @@ -190,7 +190,7 @@ object EstimatedItemValue { } else { NumberUtil.format(totalPrice) } - list.add("§aTotal: §6§l$numberFormat") + list.add("§aTotal: §6§l$numberFormat coins") val newDisplay = mutableListOf<List<Any>>() for (line in list) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt index 53b7b56f9..47c002c92 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt @@ -156,7 +156,7 @@ class ShowMotesNpcSellPrice { add("§6Value per: §d$valuePer Motes") add("§6Total in chest: §d${(value / valuePer).toInt()}") add("") - add("§6Total value: §d$price") + add("§6Total value: §d$price coins") } add(Renderable.hoverTips("§6${stack.displayName}: §b$price", tips, indexes = index, stack = stack)) }) diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerProfitTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerProfitTracker.kt index f77ae2121..3e69cfcca 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerProfitTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerProfitTracker.kt @@ -196,7 +196,7 @@ object SlayerProfitTracker { val profitPerBoss = profit / itemLog.slayerCompletedCount val profitPerBossFormat = NumberUtil.format(profitPerBoss) - val text = "§eTotal Profit: $profitPrefix$profitFormat" + val text = "§eTotal Profit: $profitPrefix$profitFormat coins" addAsSingletonList(Renderable.hoverTips(text, listOf("§7Profit per boss: $profitPrefix$profitPerBossFormat"))) tracker.addPriceFromButton(this) |