summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/fishing
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/fishing
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/fishing')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingProfitTracker.kt12
1 files changed, 5 insertions, 7 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 d5433c9bf..e6f2a9a92 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
@@ -52,15 +52,13 @@ object FishingProfitTracker {
)
}
- override fun getCoinFormat(item: TrackedItem, numberColor: String): Pair<String, List<String>> {
+ override fun getCoinName(item: TrackedItem) = "§6Fished Coins"
+
+ override fun getCoinDescription(item: TrackedItem): List<String> {
val mobKillCoinsFormat = NumberUtil.format(item.totalAmount)
- val gained = item.timesGained
- val text = " $numberColor${gained}x §6Fished Coins§7: §6$mobKillCoinsFormat"
- val lore = listOf(
- "§7Killing mobs gives you coins (more with scavenger)",
- "§7You got §e$mobKillCoinsFormat §7coins in total this way"
+ return listOf(
+ "§7You fished up §6$mobKillCoinsFormat coins §7already."
)
- return text to lore
}
override fun getCustomPricePer(internalName: NEUInternalName): Double {