aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-09-04 08:53:10 +0200
committerGitHub <noreply@github.com>2024-09-04 08:53:10 +0200
commit73a2b5155db2bdac4746e681d5d770bd7f0c3aaf (patch)
tree6fbf3b5cbd8dbf554ed92edbaaf79102332d0084 /src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt
parent141d2f3c5798b97487ccb733b65c288150cf6d3d (diff)
downloadskyhanni-73a2b5155db2bdac4746e681d5d770bd7f0c3aaf.tar.gz
skyhanni-73a2b5155db2bdac4746e681d5d770bd7f0c3aaf.tar.bz2
skyhanni-73a2b5155db2bdac4746e681d5d770bd7f0c3aaf.zip
Fix: Profit Tracker coin formatting (#2444)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt
index 4f3b3713c..0d91c7f62 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt
@@ -47,9 +47,13 @@ object SlayerAPI {
val totalPrice = maxPrice * amount
val format = totalPrice.shortFormat()
- val priceFormat = " §7(§6$format coins§7)"
- "$amountFormat$displayName$priceFormat" to totalPrice
+ if (internalName == NEUInternalName.SKYBLOCK_COIN) {
+ "§6$format coins" to totalPrice
+ } else {
+ val priceFormat = " §7(§6$format coins§7)"
+ "$amountFormat$displayName$priceFormat" to totalPrice
+ }
}
@SubscribeEvent