aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-27 13:22:34 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-27 13:22:34 +0200
commit43c61ea8b136836140faea98d932f6f8e66e35ef (patch)
treee0e292f3433b756e324523a1415c85bc807a42ec
parent80cfdbefef4c19fe952a2913b7a465efbddfcecf (diff)
downloadskyhanni-43c61ea8b136836140faea98d932f6f8e66e35ef.tar.gz
skyhanni-43c61ea8b136836140faea98d932f6f8e66e35ef.tar.bz2
skyhanni-43c61ea8b136836140faea98d932f6f8e66e35ef.zip
code cleanup
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt12
1 files changed, 7 insertions, 5 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 c9e17ee04..a6bc5e10e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
@@ -21,6 +21,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.NumberUtil.formatInt
import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNecessary
+import at.hannibal2.skyhanni.utils.StringUtils.firstLetterUppercase
import at.hannibal2.skyhanni.utils.StringUtils.matchFirst
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.StringUtils.matches
@@ -80,6 +81,8 @@ object DungeonAPI {
WISDOM(0),
TIME(0);
+ val displayName by lazy { name.firstLetterUppercase() }
+
companion object {
fun reset() {
entries.forEach { it.power = 0 }
@@ -312,11 +315,10 @@ object DungeonAPI {
add("isUniqueClass: $isUniqueClass")
add("playerClassLevel: $playerClassLevel")
add("")
- add("Life: ${DungeonBlessings.LIFE.power}")
- add("Stone: ${DungeonBlessings.STONE.power}")
- add("Wisdom: ${DungeonBlessings.WISDOM.power}")
- add("Power: ${DungeonBlessings.POWER.power}")
- add("Time: ${DungeonBlessings.TIME.power}")
+ add("Blessings: ")
+ for (blessing in DungeonBlessings.entries) {
+ add(" ${blessing.displayName} ${blessing.power}")
+ }
}
}