Skip to content

Commit

Permalink
migrate AshfangFreezeCooldown
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Jan 2, 2024
1 parent 91448b9 commit 9fc3f1f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.RenderUtils.renderString
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.TimeUtils
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent

class AshfangFreezeCooldown {
private val config get() = SkyHanniMod.feature.crimsonIsle.ashfang

// TODO USE SH-REPO
private val cryogenicBlastPattern = "§cAshfang Follower's Cryogenic Blast hit you for (.*) damage!".toPattern()

private val cryogenicBlastPattern by RepoPattern.pattern(
"ashfang.freeze.cryogenic",
"§cAshfang Follower's Cryogenic Blast hit you for .* damage!"
)
private var lastHit = 0L

@SubscribeEvent
Expand Down

0 comments on commit 9fc3f1f

Please sign in to comment.