diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-23 13:46:09 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-23 13:46:09 +0200 |
commit | 1108b56295e43606e6ed5533f3b35b418c8bb624 (patch) | |
tree | 1be5981efa8a3e63fef779ea1df084571bff702d /src/main/java/at/hannibal2 | |
parent | 7ff28af498fdba6e5a2a1150c3e2620c613c2c48 (diff) | |
download | skyhanni-1108b56295e43606e6ed5533f3b35b418c8bb624.tar.gz skyhanni-1108b56295e43606e6ed5533f3b35b418c8bb624.tar.bz2 skyhanni-1108b56295e43606e6ed5533f3b35b418c8bb624.zip |
formatting
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt index f302b669b..cd148db11 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt @@ -38,23 +38,23 @@ object PowderTracker { private val patternGroup = RepoPattern.group("mining.powder.tracker") private val pickedPattern by patternGroup.pattern( "picked", - "§6You have successfully picked the lock on this chest!" + "§6You have successfully picked the lock on this chest!", ) private val uncoveredPattern by patternGroup.pattern( "uncovered", - "§aYou uncovered a treasure chest!" + "§aYou uncovered a treasure chest!", ) private val powderStartedPattern by patternGroup.pattern( "powder.started", - ".*§r§b§l2X POWDER STARTED!.*" + ".*§r§b§l2X POWDER STARTED!.*", ) private val powderEndedPattern by patternGroup.pattern( "powder.ended", - ".*§r§b§l2X POWDER ENDED!.*" + ".*§r§b§l2X POWDER ENDED!.*", ) private val powderBossBarPattern by patternGroup.pattern( "powder.bossbar", - "§e§lPASSIVE EVENT §b§l2X POWDER §e§lRUNNING FOR §a§l(?<time>.*)§r" + "§e§lPASSIVE EVENT §b§l2X POWDER §e§lRUNNING FOR §a§l(?<time>.*)§r", ) /** @@ -81,7 +81,7 @@ object PowderTracker { "Amber" to "§6", "Amethyst" to "§5", "Jade" to "§a", - "Topaz" to "§e" + "Topaz" to "§e", ) init { @@ -111,8 +111,7 @@ object PowderTracker { } } - private val tracker = SkyHanniTracker("Powder Tracker", { Data() }, { it.powderTracker }) - { formatDisplay(drawDisplay(it)) } + private val tracker = SkyHanniTracker("Powder Tracker", { Data() }, { it.powderTracker }) { formatDisplay(drawDisplay(it)) } class Data : TrackerData() { @@ -178,8 +177,9 @@ object PowderTracker { tracker.modify { val count = it.rewards[reward] ?: 0 var amount = group("amount").formatLong() - if ((reward == PowderChestReward.MITHRIL_POWDER || reward == PowderChestReward.GEMSTONE_POWDER) && doublePowder) + if ((reward == PowderChestReward.MITHRIL_POWDER || reward == PowderChestReward.GEMSTONE_POWDER) && doublePowder) { amount *= 2 + } it.rewards[reward] = count + amount } } |