aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/slayer
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-25 04:15:16 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-25 04:15:16 +0100
commit7f86047e7f5565deab278ad2866a6d753c1816a0 (patch)
tree688854a3a7b69cd419bee689146daf9a6117d7ff /src/main/java/at/hannibal2/skyhanni/features/slayer
parent0ee3f2095cabddbf85016e3a5eee9cee4435d16b (diff)
downloadskyhanni-7f86047e7f5565deab278ad2866a6d753c1816a0.tar.gz
skyhanni-7f86047e7f5565deab278ad2866a6d753c1816a0.tar.bz2
skyhanni-7f86047e7f5565deab278ad2866a6d753c1816a0.zip
made coin name and coin description independent functions
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/slayer')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerProfitTracker.kt13
1 files changed, 6 insertions, 7 deletions
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 3e69cfcca..7a49e4ddd 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerProfitTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerProfitTracker.kt
@@ -58,15 +58,14 @@ object SlayerProfitTracker {
)
}
- override fun getCoinFormat(item: TrackedItem, numberColor: String): Pair<String, List<String>> {
+ override fun getCoinName(item: TrackedItem) = "§6Mob Kill Coins"
+
+ override fun getCoinDescription(item: TrackedItem): List<String> {
val mobKillCoinsFormat = NumberUtil.format(item.totalAmount)
- val gained = item.timesGained
- val text = " $numberColor${gained}x §6Mob Kill Coins§7: §6$mobKillCoinsFormat"
- val lore = listOf(
- "§7Killing mobs gives you coins (more with scavenger)",
- "§7You got §6$mobKillCoinsFormat coins §7in total this way"
+ return listOf(
+ "§7Killing mobs gives you coins (more with scavenger).",
+ "§7You got §6$mobKillCoinsFormat coins §7way."
)
- return text to lore
}
}