From fd363daa067203bec4c2c60abb6f1cb7c5f94e5a Mon Sep 17 00:00:00 2001 From: The Holy Chicken <167555771+TheHolyChickn@users.noreply.github.com> Date: Thu, 8 Aug 2024 14:10:58 -0400 Subject: [PATCH] Update DungeonChestProfit.kt (#494) Fixes profit calc after changes to Croesus GUI name Signed-off-by: The Holy Chicken <167555771+TheHolyChickn@users.noreply.github.com> --- .../skytilsmod/features/impl/dungeons/DungeonChestProfit.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonChestProfit.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonChestProfit.kt index ac73bb5f2..3884a2879 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonChestProfit.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonChestProfit.kt @@ -53,7 +53,7 @@ object DungeonChestProfit { private val element = DungeonChestProfitElement() private var rerollBypass = false private val essenceRegex = Regex("§d(?\\w+) Essence §8x(?\\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) { @@ -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!" } -> { @@ -325,4 +325,4 @@ object DungeonChestProfit { Skytils.guiManager.registerElement(this) } } -} \ No newline at end of file +}