diff options
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt index a60ddbbba..6e0f6acf0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt @@ -353,14 +353,18 @@ enum class DiscordStatus(private val displayMessageSupplier: Supplier<String>?) }), DUNGEONS({ - val boss = DungeonAPI.getCurrentBoss() - if (boss == null) { - "Unknown boss" + if (!DungeonAPI.inDungeon()) { + AutoStatus.DUNGEONS.placeholderText } else { - val floor = DungeonAPI.dungeonFloor ?: AutoStatus.DUNGEONS.placeholderText - val amountKills = DungeonAPI.bossStorage?.get(boss)?.addSeparators() ?: "Unknown" - val time = DungeonAPI.getTime() - "$floor Kills: $amountKills ($time)" + val boss = DungeonAPI.getCurrentBoss() + if (boss == null) { + "Unknown dungeon boss" + } else { + val floor = DungeonAPI.dungeonFloor ?: AutoStatus.DUNGEONS.placeholderText + val amountKills = DungeonAPI.bossStorage?.get(boss)?.addSeparators() ?: "Unknown" + val time = DungeonAPI.getTime() + "$floor Kills: $amountKills ($time)" + } } }) ; |