Skip to content

Commit

Permalink
only marginally more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Desco1 authored and Sychic committed Jul 17, 2024
1 parent 4d6d7bf commit f0f6742
Showing 1 changed file with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,18 @@ object ScoreCalculation {
if (!Utils.inDungeons) return@checkThreadAndQueue
if (Skytils.config.showDungeonStatus) {
ScoreCalculationElement.text.add("§9Dungeon Status")
ScoreCalculationElement.text.add("• §eDeaths: §${if (deaths.get() == 0) "a" else "c"}${deaths.get()} ${if (firstDeathHadSpirit.get()) "§7(§6Spirit§7)" else ""}")
ScoreCalculationElement.text.add("• §ePuzzles: §${if (completedPuzzleCount == puzzleCount) "a" else if (failedPuzzles.get() > 0) "c" else "e"}$completedPuzzleCount§7/§a$puzzleCount")
ScoreCalculationElement.text.add("• §eDeaths: ${if (deaths.get() == 0) {
"§a"
} else {
"§c"
}}${deaths.get()} ${if (firstDeathHadSpirit.get()) "§7(§6Spirit§7)" else ""}")
ScoreCalculationElement.text.add("• §ePuzzles: ${if (completedPuzzleCount == puzzleCount) {
"§a"
} else if (failedPuzzles.get() > 0) {
"§c"
} else {
"§e"
}}$completedPuzzleCount§7/§a$puzzleCount")
ScoreCalculationElement.text.add("• §eSecrets: " + if (totalSecrets.get() == 0) {
"§7?"
} else {
Expand All @@ -371,8 +381,20 @@ object ScoreCalculation {
else -> "§a${totalSecrets.get() - skip}"
} + "§e)"
})
ScoreCalculationElement.text.add("• §eCrypts: §${if (crypts.get() >= 5) "a" else "c"}${crypts.get().coerceAtMost(5)}")
ScoreCalculationElement.text.add("• §eMimic:§l${if ((dungeonFloorNumber ?: 0) >= 6) if (mimicKilled.get()) "§a ✔" else "§c ✘" else "§7 -"}")
ScoreCalculationElement.text.add("• §eCrypts: ${if (crypts.get() >= 5) {
"§a"
} else {
"§c"
}}${crypts.get().coerceAtMost(5)}")
ScoreCalculationElement.text.add("• §eMimic: §l${if ((dungeonFloorNumber ?: 0) >= 6) {
if (mimicKilled.get()) {
"§a✔"
} else {
"§c✘"
}
} else {
"§7-"
}}")
ScoreCalculationElement.text.add("")
}
if (Skytils.config.showScoreBreakdown) {
Expand Down

0 comments on commit f0f6742

Please sign in to comment.