From ea8d09297d037807f00b62778f99901060f4e375 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Sat, 9 Mar 2024 21:46:04 +0100 Subject: Feature: Kismet Feather Tracker (#1011) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/events/DungeonCompleteEvent.kt | 3 +++ .../java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/events/DungeonCompleteEvent.kt (limited to 'src/main/java/at/hannibal2/skyhanni/events') diff --git a/src/main/java/at/hannibal2/skyhanni/events/DungeonCompleteEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/DungeonCompleteEvent.kt new file mode 100644 index 000000000..d278753cb --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/events/DungeonCompleteEvent.kt @@ -0,0 +1,3 @@ +package at.hannibal2.skyhanni.events + +class DungeonCompleteEvent(val floor: String) : LorenzEvent() diff --git a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt index bc9e97ed8..f8d6c4ab4 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt @@ -9,6 +9,9 @@ open class InventoryOpenEvent(private val inventory: OtherInventoryData.Inventor val inventoryName: String by lazy { inventory.title } val inventorySize: Int by lazy { inventory.slotCount } val inventoryItems: Map by lazy { inventory.items } + val inventoryItemsWithNull: Map by lazy { + (0 until inventorySize).associateWith { inventoryItems[it] } + } val fullyOpenedOnce: Boolean get() = inventory.fullyOpenedOnce } -- cgit