aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt
index 96246caf4..e22bc1c03 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt
@@ -18,10 +18,17 @@ class BazaarApi {
var inBazaarInventory = false
fun getCleanBazaarName(name: String): String {
- if (name.endsWith(" Gemstone")) {
- return name.substring(6)
+ var newName = name
+ if (newName.endsWith(" Gemstone")) {
+ return newName.substring(6)
}
- return name.replace("-", " ").removeColor()
+ if (newName.contains("Turbo-Cocoa ")) {
+ newName = newName.replace("Cocoa", "Coco")
+ }
+ if (newName.contains("Turbo-Cacti ")) {
+ newName = newName.replace("Cacti", "Cactus")
+ }
+ return newName.replace("-", " ").removeColor()
}
fun getBazaarDataForName(name: String): BazaarData? {