Skip to content

Commit

Permalink
Update DungeonChestProfit.kt (#494)
Browse files Browse the repository at this point in the history
Fixes profit calc after changes to Croesus GUI name

Signed-off-by: The Holy Chicken <[email protected]>
  • Loading branch information
TheHolyChickn committed Aug 8, 2024
1 parent a108b41 commit fd363da
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ object DungeonChestProfit {
private val element = DungeonChestProfitElement()
private var rerollBypass = false
private val essenceRegex = Regex("§d(?<type>\\w+) Essence §8x(?<count>\\d+)")
private val croesusChestRegex = Regex("^(Master Mode|The)? Catacombs - Floor (IV|V?I{0,3})$")
private val croesusChestRegex = Regex("^(Master Mode )?The Catacombs - Flo(or (IV|V?I{0,3}))?$")

@SubscribeEvent
fun onGUIDrawnEvent(event: GuiContainerEvent.ForegroundDrawnEvent) {
Expand Down Expand Up @@ -126,7 +126,7 @@ object DungeonChestProfit {
val stack = event.slot.stack ?: return
if (stack.item == Items.skull) {
val name = stack.displayName
if (!(name == "§cThe Catacombs" || name == "§cMaster Mode Catacombs")) return
if (!(name == "§cThe Catacombs" || name == "§cMaster Mode The Catacombs")) return
val lore = ItemUtil.getItemLore(stack)
event.slot highlight when {
lore.any { line -> line == "§aNo more Chests to open!" } -> {
Expand Down Expand Up @@ -325,4 +325,4 @@ object DungeonChestProfit {
Skytils.guiManager.registerElement(this)
}
}
}
}

0 comments on commit fd363da

Please sign in to comment.