Skip to content

Commit

Permalink
feat: white check blood room when spawn is done
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Sep 7, 2024
1 parent b47ba9a commit 742db09
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ import gg.skytils.skytilsmod.Skytils
import gg.skytils.skytilsmod.core.structure.GuiElement
import gg.skytils.skytilsmod.core.tickTimer
import gg.skytils.skytilsmod.features.impl.dungeons.DungeonFeatures.dungeonFloorNumber
import gg.skytils.skytilsmod.features.impl.dungeons.catlas.core.map.Room
import gg.skytils.skytilsmod.features.impl.dungeons.catlas.core.map.RoomState
import gg.skytils.skytilsmod.features.impl.dungeons.catlas.core.map.RoomType
import gg.skytils.skytilsmod.features.impl.dungeons.catlas.handlers.DungeonInfo
import gg.skytils.skytilsmod.listeners.DungeonListener
import gg.skytils.skytilsmod.utils.NumberUtil
import gg.skytils.skytilsmod.utils.NumberUtil.roundToPrecision
Expand Down Expand Up @@ -87,6 +91,14 @@ object DungeonTimer {
)
}

bloodOpenTime != -1L && bloodClearTime == -1L && message == "§r§c[BOSS] The Watcher§r§f: That will be enough for now.§r" -> {
DungeonInfo.uniqueRooms.find { it.mainRoom.data.type == RoomType.BLOOD }?.let {
if (it.mainRoom.state > RoomState.CLEARED) {
it.mainRoom.state = RoomState.CLEARED
}
}
}

message == "§r§c[BOSS] The Watcher§r§f: You have proven yourself. You may pass.§r" -> {
bloodClearTime = System.currentTimeMillis()
if (Skytils.config.dungeonTimer) UChat.chat(
Expand Down

0 comments on commit 742db09

Please sign in to comment.