From 8fcc5125090660daccb30c34f5d15b44e97ae304 Mon Sep 17 00:00:00 2001 From: saga <45262877+saga-00@users.noreply.github.com> Date: Wed, 29 May 2024 04:49:44 -0300 Subject: Feature: Croesus Limit (#1908) --- .../at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt index fa297d6fa..d87e02796 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt @@ -230,6 +230,10 @@ class CroesusChestTracker { if ((croesusChests?.size ?: 0) > maxChests) { croesusChests?.dropLast(1) } + + if (config.croesusLimit && getLastActiveChest() >= 55) { + ChatUtils.chat("You are close to the Croesus Limit. Please open your chests!") + } } private fun Int.getRun() = getRun0(this) -- cgit