aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/dungeon
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-15 13:59:18 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-15 13:59:18 +0200
commit0303c7985ab1232182abed3c8f635679a6ac6531 (patch)
treeff4ce3dddd9bf4be2b1d1b41093a12e4d86552d7 /src/main/java/at/hannibal2/skyhanni/features/dungeon
parent0bdfaab9e486f0c6adc576e3a939838ef1827c80 (diff)
downloadskyhanni-0303c7985ab1232182abed3c8f635679a6ac6531.tar.gz
skyhanni-0303c7985ab1232182abed3c8f635679a6ac6531.tar.bz2
skyhanni-0303c7985ab1232182abed3c8f635679a6ac6531.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLevelColor.kt2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt
index 31e8c611e..d10122334 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt
@@ -28,7 +28,7 @@ class DungeonCleanEnd {
@SubscribeEvent
fun onChatMessage(event: LorenzChatEvent) {
if (!LorenzUtils.inDungeons) return
- if (!config.toggle) return
+ if (!config.enabled) return
val message = event.message
@@ -39,7 +39,7 @@ class DungeonCleanEnd {
private fun shouldBlock(): Boolean {
if (!LorenzUtils.inDungeons) return false
- if (!config.toggle) return false
+ if (!config.enabled) return false
if (!bossDone) return false
@@ -66,7 +66,7 @@ class DungeonCleanEnd {
@SubscribeEvent
fun onEntityHealthUpdate(event: EntityHealthUpdateEvent) {
if (!LorenzUtils.inDungeons) return
- if (!config.toggle) return
+ if (!config.enabled) return
if (bossDone) return
if (lastBossId == -1) return
if (event.entity.entityId != lastBossId) return
@@ -117,7 +117,7 @@ class DungeonCleanEnd {
@SubscribeEvent
fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) {
- event.move(3, "dungeon.cleanEndToggle", "dungeon.cleanEnd.toggle")
+ event.move(3, "dungeon.cleanEndToggle", "dungeon.cleanEnd.enabled")
event.move(3, "dungeon.cleanEndF3IgnoreGuardians", "dungeon.cleanEnd.F3IgnoreGuardians")
}
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 ddfd622a7..834cd8fd6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt
@@ -137,9 +137,9 @@ class DungeonCopilot {
}
@SubscribeEvent
- fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent){
+ fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) {
event.move(3, "dungeon.messageFilterKeysAndDoors", "dungeon.messageFilter.keysAndDoors")
- event.move(3,"dungeon.copilotEnabled", "dungeon.dungeonCopilot.enabled")
- event.move(3,"dungeon.copilotPos", "dungeon.dungeonCopilot.pos")
+ event.move(3, "dungeon.copilotEnabled", "dungeon.dungeonCopilot.enabled")
+ event.move(3, "dungeon.copilotPos", "dungeon.dungeonCopilot.pos")
}
} \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLevelColor.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLevelColor.kt
index 776a11a14..b15cdabb7 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLevelColor.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLevelColor.kt
@@ -37,7 +37,7 @@ class DungeonLevelColor {
}
@SubscribeEvent
- fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent){
+ fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) {
event.move(3, "dungeon.partyFinderColoredClassLevel", "dungeon.partyFinder.coloredClassLevel")
}
}