aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-10 14:33:20 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-10 14:33:20 +0200
commit698ebfb1a5673e52f97c681d41a1eb4becf92df7 (patch)
tree42bcd3a46d2e6814940a0924593d642a2982c15b /src/main/java/at/hannibal2/skyhanni/data
parent90b7eba90154668696d69766aed7be1aae61b9a6 (diff)
downloadskyhanni-698ebfb1a5673e52f97c681d41a1eb4becf92df7.tar.gz
skyhanni-698ebfb1a5673e52f97c681d41a1eb4becf92df7.tar.bz2
skyhanni-698ebfb1a5673e52f97c681d41a1eb4becf92df7.zip
+ Changed Slayer Profit Tracker
+ Option to change price between npc/instant sell and sell offer + Save data in config + Added option to hide an item from the display + Showing the profit per boss = Different tiers of same slayer type no longer gets merged together
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt
index 0d063146d..b5c287d5a 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt
@@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.data
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.events.SlayerChangeEvent
+import at.hannibal2.skyhanni.events.SlayerQuestCompleteEvent
import at.hannibal2.skyhanni.features.bazaar.BazaarApi
import at.hannibal2.skyhanni.features.slayer.SlayerType
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
@@ -82,9 +83,15 @@ object SlayerAPI {
@SubscribeEvent
fun onChat(event: LorenzChatEvent) {
+ if (!LorenzUtils.inSkyBlock) return
+
if (event.message.contains("§r§5§lSLAYER QUEST STARTED!")) {
questStartTime = System.currentTimeMillis()
}
+
+ if (event.message == " §r§a§lSLAYER QUEST COMPLETE!") {
+ SlayerQuestCompleteEvent().postAndCatch()
+ }
}
@SubscribeEvent