aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt1
2 files changed, 7 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
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
index f249cce3e..684a7eb00 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
@@ -43,6 +43,7 @@ class SkyHanniItemTracker<Data : ItemTrackerData>(
it.get(DisplayMode.SESSION).items[internalName]!!.hidden = hidden
}
+ // TODO move the function to common
val (itemName, price) = SlayerAPI.getItemNameAndPrice(internalName, amount)
if (config.warnings.chat && price >= config.warnings.minimumChat) {
ChatUtils.chat("§a+Tracker Drop§7: §r$itemName")