summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/api
diff options
context:
space:
mode:
authorLuna <luna@alexia.lol>2024-07-15 20:16:36 +0200
committerGitHub <noreply@github.com>2024-07-15 20:16:36 +0200
commitf9e0fbd23a8243b931a43f48818e8d76f8e0cbd7 (patch)
tree08d9044a4d6bfd05909d1f53c6977e7a850e2079 /src/main/java/at/hannibal2/skyhanni/api
parent3875fd1658028708e6b990c45599142df8ec7d38 (diff)
downloadskyhanni-f9e0fbd23a8243b931a43f48818e8d76f8e0cbd7.tar.gz
skyhanni-f9e0fbd23a8243b931a43f48818e8d76f8e0cbd7.tar.bz2
skyhanni-f9e0fbd23a8243b931a43f48818e8d76f8e0cbd7.zip
Backend: Remove redundant property from HotmAPI.Powder (#2128)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/api')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/api/HotmAPI.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/api/HotmAPI.kt b/src/main/java/at/hannibal2/skyhanni/api/HotmAPI.kt
index 38c901c85..39305a012 100644
--- a/src/main/java/at/hannibal2/skyhanni/api/HotmAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/api/HotmAPI.kt
@@ -37,15 +37,13 @@ object HotmAPI {
;
- val lowName = name.lowercase().firstLetterUppercase()
-
val heartPattern by RepoPattern.pattern(
"inventory.${name.lowercase()}.heart",
- "§7$lowName Powder: §a§.(?<powder>[\\d,]+)"
+ "§7$displayName Powder: §a§.(?<powder>[\\d,]+)"
)
val resetPattern by RepoPattern.pattern(
"inventory.${name.lowercase()}.reset",
- "\\s+§8- §.(?<powder>[\\d,]+) $lowName Powder"
+ "\\s+§8- §.(?<powder>[\\d,]+) $displayName Powder"
)
fun pattern(isHeart: Boolean) = if (isHeart) heartPattern else resetPattern