Skip to content

Commit

Permalink
fixed incorrect occurrence for "Blaze Done" message
Browse files Browse the repository at this point in the history
 - now in blaze puzzle the counter actually counts for the amount of blazes killed per attempt instead of a cumulative count
(yes you could trigger Blaze Done message after failing Blaze 10 times in a row)
  • Loading branch information
zealerker22 committed Jul 5, 2024
1 parent 22a9992 commit fb93dd6
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import gg.skytils.skytilsmod.core.structure.GuiElement
import gg.skytils.skytilsmod.events.impl.*
import gg.skytils.skytilsmod.events.impl.GuiContainerEvent.SlotClickEvent
import gg.skytils.skytilsmod.events.impl.PacketEvent.ReceiveEvent
import gg.skytils.skytilsmod.events.impl.skyblock.DungeonEvent
import gg.skytils.skytilsmod.features.impl.dungeons.catlas.handlers.DungeonInfo
import gg.skytils.skytilsmod.features.impl.handlers.MayorInfo
import gg.skytils.skytilsmod.listeners.DungeonListener
Expand Down Expand Up @@ -331,6 +332,14 @@ object DungeonFeatures {
}
}

@SubscribeEvent
fun onPuzzleReset(event: DungeonEvent.PuzzleEvent.Reset) {
if (!Utils.inDungeons) return
if (event.puzzle == "Higher Or Lower") {
blazes = 0
}
}

@SubscribeEvent(priority = EventPriority.HIGHEST, receiveCanceled = true)
fun onChat(event: ClientChatReceivedEvent) {
if (!Utils.inSkyblock || event.type == 2.toByte()) return
Expand Down

0 comments on commit fb93dd6

Please sign in to comment.