From 4745d1b1d8241e44dd23da52f03c45d328063933 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 16 Mar 2023 11:58:59 +0100 Subject: Fixed turbo cocoa and turbo cacti books in bazaar overlays --- .../java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt | 13 ++++++++++--- 1 file 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? { -- cgit