aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-16 11:58:59 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-16 11:58:59 +0100
commit4745d1b1d8241e44dd23da52f03c45d328063933 (patch)
treef2548aa458cc02fe8758dc90318c2bf500efa317
parent7a6ce2c5d4ffce1cb8cc5c4c27ae5c938236645e (diff)
downloadskyhanni-4745d1b1d8241e44dd23da52f03c45d328063933.tar.gz
skyhanni-4745d1b1d8241e44dd23da52f03c45d328063933.tar.bz2
skyhanni-4745d1b1d8241e44dd23da52f03c45d328063933.zip
Fixed turbo cocoa and turbo cacti books in bazaar overlays
-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? {