Skip to content

Commit

Permalink
Fix Minehut timer at p1, Fix edge case (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oxyopiia committed Aug 12, 2024
1 parent 668bd49 commit db53a8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/net/oxyopia/vice/features/bosses/Boss.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ abstract class Boss (

val phase = groupValues[2].toIntOrNull() ?: return
val phaseTime = getPhaseTimeSec(phase) ?: return
if (phaseTime <= 0) return
val diff = lastSpawned.timeDelta()

val timer = diff.formatTimer(phaseTime.seconds)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import net.oxyopia.vice.data.World

object MinehutBoss : Boss(
World.Minehut,
Regex("Lifesteal Box SMP Unique - (\\d+)/\\d+ \\[PHASE (\\d)]"),
Regex("Lifesteal Box SMP Unique - (\\d+)/\\d+ [❤♥] \\[PHASE (\\d)]"),
phaseTimesSec = listOf(2 * 60, 3 * 60, 4 * 60)
)

0 comments on commit db53a8a

Please sign in to comment.