diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt index b5c287d5a..1c5c76d92 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt @@ -66,7 +66,7 @@ object SlayerAPI { } val amountFormat = if (amount != 1) "§7${amount}x §r" else "" - val displayName = NEUItems.getItemStack(internalName).nameWithEnchantment + val displayName = getNameWithEnchantmentFor(internalName) val price = NEUItems.getPrice(internalName) val npcPrice = BazaarApi.getBazaarDataByInternalName(internalName)?.npcPrice ?: 0.0 @@ -81,6 +81,13 @@ object SlayerAPI { return result } + fun getNameWithEnchantmentFor(internalName: String): String? { + if (internalName == "WISP_POTION") { + return "§fWisp's Ice-Flavored Water" + } + return NEUItems.getItemStack(internalName).nameWithEnchantment + } + @SubscribeEvent fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inSkyBlock) return |