diff options
author | Linnea Gräf <nea@nea.moe> | 2025-01-17 18:00:43 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-01-17 18:00:43 +0100 |
commit | 74a043e53540c120ebe58b0199f57bfa36d30e47 (patch) | |
tree | 62b3505d5cc707eb854ad611a4bec38285ec29f8 /src/main/kotlin/util/skyblock | |
parent | 19bc576b67c856b33922ee99c3e22a14f39ab55f (diff) | |
download | Firmament-74a043e53540c120ebe58b0199f57bfa36d30e47.tar.gz Firmament-74a043e53540c120ebe58b0199f57bfa36d30e47.tar.bz2 Firmament-74a043e53540c120ebe58b0199f57bfa36d30e47.zip |
feat: Allow dropping protected items in dungeons
Diffstat (limited to 'src/main/kotlin/util/skyblock')
-rw-r--r-- | src/main/kotlin/util/skyblock/DungeonUtil.kt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main/kotlin/util/skyblock/DungeonUtil.kt b/src/main/kotlin/util/skyblock/DungeonUtil.kt new file mode 100644 index 0000000..488b158 --- /dev/null +++ b/src/main/kotlin/util/skyblock/DungeonUtil.kt @@ -0,0 +1,33 @@ +package moe.nea.firmament.util.skyblock + +import moe.nea.firmament.util.SBData +import moe.nea.firmament.util.ScoreboardUtil +import moe.nea.firmament.util.SkyBlockIsland +import moe.nea.firmament.util.TIME_PATTERN + +object DungeonUtil { + val isInDungeonIsland get() = SBData.skyblockLocation == SkyBlockIsland.DUNGEON + private val timeElapsedRegex = "Time Elapsed: $TIME_PATTERN".toRegex() + val isInActiveDungeon get() = isInDungeonIsland && ScoreboardUtil.simplifiedScoreboardLines.any { it.matches( + timeElapsedRegex) } + +/*Title: + +§f§lSKYBLOCK§B§L CO-OP + +' Late Spring 7th' +' §75:20am' +' §7⏣ §cThe Catacombs §7(M3)' +' §7♲ §7Ironman' +' ' +'Keys: §c■ §c✗ §8■ §a1x' +'Time Elapsed: §a46s' +'Cleared: §660% §8(105)' +' ' +'§e[B] §b151_Dragon §e2,062§c❤' +'§e[A] §6Lennart0312 §a17,165§c' +'§e[T] §b187i §a14,581§c❤' +'§e[H] §bFlameeke §a8,998§c❤' +' ' +'§ewww.hypixel.net'*/ +} |