summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/dungeon
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-18 19:18:53 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-18 19:18:53 +0100
commitfc19b7274edc318de60bc9628f1e87d36f285c63 (patch)
tree55aab6e27879aa9163dfb855749b7bef5ff2631b /src/main/java/at/hannibal2/skyhanni/features/dungeon
parent829aea323a35e88384e2e258049b5c74c7fafb7e (diff)
downloadskyhanni-fc19b7274edc318de60bc9628f1e87d36f285c63.tar.gz
skyhanni-fc19b7274edc318de60bc9628f1e87d36f285c63.tar.bz2
skyhanni-fc19b7274edc318de60bc9628f1e87d36f285c63.zip
moving dungeons and slayer related debug data into DebugDataCollectEvent. allowing to hide or search for specific debug data with /shdebug <search>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
index 2840565df..fb141ad30 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
@@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.features.dungeon
import at.hannibal2.skyhanni.data.ProfileStorageData
import at.hannibal2.skyhanni.data.ScoreboardData
+import at.hannibal2.skyhanni.events.DebugDataCollectEvent
import at.hannibal2.skyhanni.events.DungeonBossRoomEnterEvent
import at.hannibal2.skyhanni.events.DungeonEnterEvent
import at.hannibal2.skyhanni.events.DungeonStartEvent
@@ -220,6 +221,29 @@ class DungeonAPI {
}
}
+ @SubscribeEvent
+ fun onDebugDataCollect(event: DebugDataCollectEvent) {
+ event.title("Dungeon")
+
+ if (!LorenzUtils.inDungeons) {
+ event.exit("not in dungeons")
+ return
+ }
+
+ event.addData(
+ buildList {
+ add("dungeonFloor: $dungeonFloor")
+ add("started: $started")
+ add("getRoomID: ${getRoomID()}")
+ add("inBossRoom: $inBossRoom")
+ add("")
+ add("playerClass: $playerClass")
+ add("isUniqueClass: $isUniqueClass")
+ add("playerClassLevel: $playerClassLevel")
+ }
+ )
+ }
+
enum class DungeonFloor(private val bossName: String) {
ENTRANCE("The Watcher"),
F1("Bonzo"),