aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/gui
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-05-30 11:21:50 +0200
committerGitHub <noreply@github.com>2024-05-30 11:21:50 +0200
commit6b0e324c96073d824c12dff1629a782352155e99 (patch)
tree95317e2d5d134dc596eaa237cefb7f271384796a /src/main/java/at/hannibal2/skyhanni/features/gui
parentb2733f13841363c9417c0eb79d7240990eb36bcb (diff)
downloadskyhanni-6b0e324c96073d824c12dff1629a782352155e99.tar.gz
skyhanni-6b0e324c96073d824c12dff1629a782352155e99.tar.bz2
skyhanni-6b0e324c96073d824c12dff1629a782352155e99.zip
Feature: Hotm Features + Hotm API/Data (#1059)
Co-authored-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Co-authored-by: Empa <42304516+ItsEmpa@users.noreply.github.com> Co-authored-by: martimavocado <39881008+martimavocado@users.noreply.github.com> Co-authored-by: martimavocado <martim.cavaco@tutanota.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/gui')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
index ec4cf0c6f..2db0c37f7 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
@@ -173,9 +173,18 @@ object ScoreboardPattern {
// mining
private val miningSb = scoreboardGroup.group("mining")
+
+ /**
+ * REGEX-TEST: §2᠅ §fMithril§f: §235,448
+ * REGEX-TEST: §d᠅ §fGemstone§f: §d36,758
+ * REGEX-TEST: §b᠅ §fGlacite§f: §b29,537
+ * REGEX-TEST: §2᠅ §fMithril Powder§f: §235,448
+ * REGEX-TEST: §d᠅ §fGemstone Powder§f: §d36,758
+ * REGEX-TEST: §b᠅ §fGlacite Powder§f: §b29,537
+ */
val powderPattern by miningSb.pattern(
"powder",
- "(§.)*᠅ §.(Gemstone|Mithril|Glacite)( Powder)?(§.)*:?.*$"
+ "(?:§.)*᠅ (?:§.)(?<type>Gemstone|Mithril|Glacite)(?: Powder)?(?:§.)*:? (?:§.)*(?<amount>[\\d,.]*)"
)
val windCompassPattern by miningSb.pattern(
"windcompass",