aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt6
1 files changed, 3 insertions, 3 deletions
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 d87e02796..b565c0210 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt
@@ -272,10 +272,10 @@ class CroesusChestTracker {
ChatUtils.chat("Kismet State was cleared!")
}
- fun generateMaxChest() = generateSequence { DungeonRunInfo() }.take(maxChests)
- fun generateMaxChestAsList() = generateMaxChest().toList()
+ fun generateMaxChest(): Sequence<DungeonRunInfo> = generateSequence { DungeonRunInfo() }.take(maxChests)
+ fun generateMaxChestAsList(): List<DungeonRunInfo> = generateMaxChest().toList()
- fun getLastActiveChest(includeDungeonKey: Boolean = false) =
+ fun getLastActiveChest(includeDungeonKey: Boolean = false): Int =
(croesusChests?.indexOfLast {
it.floor != null &&
(it.openState == OpenedState.UNOPENED || (includeDungeonKey && it.openState == OpenedState.OPENED))