diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-26 10:25:40 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-26 10:25:40 +0200 |
| commit | 768cb23a7fd6aa82af60129f7f3c9d17169f16bd (patch) | |
| tree | 8fcb09ec3368ec49ec2e75c0aab8e39f3f86d1f4 /src/main/java/at/hannibal2/skyhanni/features/misc | |
| parent | 7e1b3cab73cb3f1c6131db3125736af86daa0e30 (diff) | |
| download | skyhanni-768cb23a7fd6aa82af60129f7f3c9d17169f16bd.tar.gz skyhanni-768cb23a7fd6aa82af60129f7f3c9d17169f16bd.tar.bz2 skyhanni-768cb23a7fd6aa82af60129f7f3c9d17169f16bd.zip | |
showing mm floor in rcp
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt | 14 |
1 files changed, 6 insertions, 8 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 b07fc5eb1..3537e2406 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 @@ -9,8 +9,6 @@ import at.hannibal2.skyhanni.data.GardenCropMilestones.getTierForCropCount import at.hannibal2.skyhanni.data.GardenCropMilestones.isMaxed import at.hannibal2.skyhanni.data.GardenCropMilestones.progressToNextLevel import at.hannibal2.skyhanni.features.dungeon.DungeonAPI -import at.hannibal2.skyhanni.features.dungeon.DungeonAPI.DungeonFloor -import at.hannibal2.skyhanni.features.dungeon.DungeonAPI.DungeonFloor.Companion.toBoss import at.hannibal2.skyhanni.features.garden.GardenAPI.getCropType import at.hannibal2.skyhanni.features.rift.RiftAPI import at.hannibal2.skyhanni.utils.InventoryUtils @@ -351,14 +349,14 @@ enum class DiscordStatus(private val displayMessageSupplier: Supplier<String>?) }), DUNGEONS({ - val floor = DungeonAPI.getFloor() ?: -1 // -1 if not in dungeons/failed to find a floor - val boss: DungeonFloor? = if (floor != -1) floor.toBoss() else null - if (floor == -1) AutoStatus.DUNGEONS.placeholderText - else if (boss == null) "Unknown boss" - else { + val boss = DungeonAPI.getCurrentBoss() + if (boss == null) { + "Unknown boss" + } else { + val floor = DungeonAPI.dungeonFloor ?: AutoStatus.DUNGEONS.placeholderText val amountKills = DungeonAPI.bossStorage?.get(boss)?.addSeparators() ?: "Unknown" val time = DungeonAPI.getTime() - "$boss Kills: $amountKills ($time)" + "$floor Kills: $amountKills ($time)" } }) ; |
