aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-29 09:52:36 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-29 09:52:36 +0200
commit12bb18a5ca346c1933037aef2e6242c49b7381a6 (patch)
treedc69849d2bac959a7e63787dcb7e8921231229a1 /src/main/java/at
parent8fcc5125090660daccb30c34f5d15b44e97ae304 (diff)
downloadskyhanni-12bb18a5ca346c1933037aef2e6242c49b7381a6.tar.gz
skyhanni-12bb18a5ca346c1933037aef2e6242c49b7381a6.tar.bz2
skyhanni-12bb18a5ca346c1933037aef2e6242c49b7381a6.zip
code cleanup
Diffstat (limited to 'src/main/java/at')
-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))