Skip to content

Commit

Permalink
fix: Apply kismetRerollThreshold to Croseus chests
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Feb 11, 2025
1 parent 184ab07 commit ecc8a15
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import gg.skytils.skytilsmod.mixins.transformers.accessors.AccessorGuiContainer
import gg.skytils.skytilsmod.utils.*
import gg.skytils.skytilsmod.utils.NumberUtil.romanToDecimal
import gg.skytils.skytilsmod.utils.RenderUtil.highlight
import gg.skytils.skytilsmod.utils.SBInfo
import gg.skytils.skytilsmod.utils.SkyblockIsland
import gg.skytils.skytilsmod.utils.graphics.ScreenRenderer
import gg.skytils.skytilsmod.utils.graphics.SmartFontRenderer
import gg.skytils.skytilsmod.utils.graphics.SmartFontRenderer.TextAlignment
Expand Down Expand Up @@ -234,7 +236,7 @@ object DungeonChestProfit {

@SubscribeEvent(priority = EventPriority.HIGHEST)
fun onSlotClick(event: GuiContainerEvent.SlotClickEvent) {
if (!Utils.inDungeons || event.container !is ContainerChest) return
if ((!Utils.inDungeons && SBInfo.mode != SkyblockIsland.DungeonHub.mode) || event.container !is ContainerChest) return
if (Skytils.config.kismetRerollThreshold != 0 && !rerollBypass && event.slotId == 50 && event.chestName.endsWith(
" Chest"
)
Expand Down

0 comments on commit ecc8a15

Please sign in to comment.