fix: Pickaxe ability cooldown not rendering properly

This commit is contained in:
Linnea Gräf
2024-11-10 17:48:58 +01:00
parent d1241fb0d9
commit 72fed8b08e
3 changed files with 23 additions and 6 deletions

View File

@@ -127,12 +127,15 @@ object PickaxeAbility : FirmamentFeature {
@Subscribe
fun onProfileSwitch(event: ProfileSwitchEvent) {
lastUsage.clear()
lastUsage.entries.removeIf {
it.value < lobbyJoinTime
}
}
val abilityUsePattern = Pattern.compile("You used your (?<name>.*) Pickaxe Ability!")
val fuelPattern = Pattern.compile("Fuel: .*/(?<maxFuel>$SHORT_NUMBER_FORMAT)")
val pickaxeAbilityCooldownPattern = Pattern.compile("Your pickaxe ability is on cooldown for (?<remainingCooldown>$TIME_PATTERN)\\.")
val pickaxeAbilityCooldownPattern =
Pattern.compile("Your pickaxe ability is on cooldown for (?<remainingCooldown>$TIME_PATTERN)\\.")
data class PickaxeAbilityData(
val name: String,