From 79d891d5a3e1bffd31491a921757ccf7ab66b5fe Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Sat, 31 Aug 2024 22:31:55 +0200 Subject: Feature: Bits on Cookie (#2265) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../java/at/hannibal2/skyhanni/data/BitsAPI.kt | 40 ++++++++++++---------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt index 72928fd25..e9e58fa46 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt @@ -60,7 +60,7 @@ object BitsAPI { // Scoreboard patterns val bitsScoreboardPattern by bitsDataGroup.pattern( "scoreboard", - "^Bits: §b(?[\\d,.]+).*$" + "^Bits: §b(?[\\d,.]+).*$", ) // Chat patterns @@ -68,17 +68,17 @@ object BitsAPI { private val bitsFromFameRankUpChatPattern by bitsChatGroup.pattern( "rankup.bits", - "§eYou gained §3(?.*) Bits Available §ecompounded from all your §epreviously eaten §6cookies§e! Click here to open §6cookie menu§e!" + "§eYou gained §3(?.*) Bits Available §ecompounded from all your §epreviously eaten §6cookies§e! Click here to open §6cookie menu§e!", ) private val fameRankUpPattern by bitsChatGroup.pattern( "rankup.rank", - "[§\\w\\s]+FAME RANK UP (?:§.)+(?.*)" + "[§\\w\\s]+FAME RANK UP (?:§.)+(?.*)", ) private val boosterCookieAte by bitsChatGroup.pattern( "boostercookieate", - "§eYou consumed a §6Booster Cookie§e!.*" + "§eYou consumed a §6Booster Cookie§e!.*", ) // GUI patterns @@ -86,12 +86,12 @@ object BitsAPI { private val bitsAvailableMenuPattern by bitsGuiGroup.pattern( "availablemenu", - "§7Bits Available: §b(?[\\d,]+)(§3.+)?" + "§7Bits Available: §b(?[\\d,]+)(§3.+)?", ) private val fameRankSbMenuPattern by bitsGuiGroup.pattern( "sbmenufamerank", - "§7Your rank: §e(?.*)" + "§7Your rank: §e(?.*)", ) /** @@ -99,47 +99,47 @@ object BitsAPI { */ private val cookieDurationPattern by bitsGuiGroup.pattern( "cookieduration", - "\\s*§7Duration: §a(?