From 12bb18a5ca346c1933037aef2e6242c49b7381a6 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 29 May 2024 09:52:36 +0200 Subject: code cleanup --- .../at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at') 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 = generateSequence { DungeonRunInfo() }.take(maxChests) + fun generateMaxChestAsList(): List = 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)) -- cgit