aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt16
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFloor.kt17
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/TerracottaPhase.kt2
4 files changed, 19 insertions, 18 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 1543aaf01..47f742ded 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
@@ -259,22 +259,6 @@ object DungeonAPI {
}
}
- enum class DungeonFloor(private val bossName: String) {
- ENTRANCE("The Watcher"),
- F1("Bonzo"),
- F2("Scarf"),
- F3("The Professor"),
- F4("Thorn"),
- F5("Livid"),
- F6("Sadan"),
- F7("Necron");
-
- companion object {
-
- fun byBossName(bossName: String) = DungeonFloor.entries.firstOrNull { it.bossName == bossName }
- }
- }
-
enum class DungeonClass(val scoreboardName: String) {
ARCHER("Archer"),
BERSERK("Berserk"),
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt
index 80d4a48d2..60574b1c6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt
@@ -75,7 +75,7 @@ class DungeonCopilot {
if (message == "§c[BOSS] The Watcher§r§f: That will be enough for now.") changeNextStep("Clear Blood Room")
if (message == "§c[BOSS] The Watcher§r§f: You have proven yourself. You may pass.") {
- if (DungeonAPI.getCurrentBoss() == DungeonAPI.DungeonFloor.ENTRANCE) {
+ if (DungeonAPI.getCurrentBoss() == DungeonFloor.ENTRANCE) {
changeNextStep("")
} else {
changeNextStep("Enter Boss Room")
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFloor.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFloor.kt
new file mode 100644
index 000000000..5bb2ae0c2
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFloor.kt
@@ -0,0 +1,17 @@
+package at.hannibal2.skyhanni.features.dungeon
+
+enum class DungeonFloor(private val bossName: String) {
+ ENTRANCE("The Watcher"),
+ F1("Bonzo"),
+ F2("Scarf"),
+ F3("The Professor"),
+ F4("Thorn"),
+ F5("Livid"),
+ F6("Sadan"),
+ F7("Necron");
+
+ companion object {
+
+ fun byBossName(bossName: String) = DungeonFloor.entries.firstOrNull { it.bossName == bossName }
+ }
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/TerracottaPhase.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/TerracottaPhase.kt
index 7b47adfda..a0e923820 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/TerracottaPhase.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/TerracottaPhase.kt
@@ -46,5 +46,5 @@ class TerracottaPhase {
private fun isActive() = isEnabled() && inTerracottaPhase
private fun isEnabled() =
- LorenzUtils.inDungeons && DungeonAPI.inBossRoom && DungeonAPI.getCurrentBoss() == DungeonAPI.DungeonFloor.F6
+ LorenzUtils.inDungeons && DungeonAPI.inBossRoom && DungeonAPI.getCurrentBoss() == DungeonFloor.F6
}