diff options
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonChestConfig.java | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonChestConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonChestConfig.java index e58bf0252..a31e887c1 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonChestConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonChestConfig.java @@ -9,10 +9,10 @@ public class DungeonChestConfig { @Expose - @ConfigOption(name = "Kismet", desc = "Adds a visual highlight for used kismet feather to the Croesus inventory.") + @ConfigOption(name = "Show Used Kismet", desc = "Adds a visual highlight for used kismet feather to the Croesus inventory.") @ConfigEditorBoolean @FeatureToggle - public boolean kismet = true; + public boolean showUsedKismets = true; @Expose @ConfigOption(name = "Kismet Amount", desc = "Shows the amount of kismet feathers as stack size.") 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 e831a2a11..8623e3fc5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt @@ -89,7 +89,7 @@ class CroesusChestTracker { @SubscribeEvent fun onInventoryOpen(event: InventoryFullyOpenedEvent) { if (!LorenzUtils.inSkyBlock) return - if ((SkyHanniMod.feature.dungeon.croesusUnopenedChestTracker || config.kismet) && croesusPattern.matches(event.inventoryName)) { + if ((SkyHanniMod.feature.dungeon.croesusUnopenedChestTracker || config.showUsedKismets) && croesusPattern.matches(event.inventoryName)) { pageSetup(event) if (croesusEmpty) { @@ -104,7 +104,7 @@ class CroesusChestTracker { return } - if (config.kismet || config.kismetStackSize) { + if (config.showUsedKismets || config.kismetStackSize) { kismetDungeonChestSetup(event) } } @@ -114,9 +114,9 @@ class CroesusChestTracker { if (config.kismetStackSize) { kismetAmountCache = getKismetAmount().toInt() } - if (config.kismet) { + if (config.showUsedKismets) { val kismetItem = event.inventoryItems[kismetSlotId] ?: return - if (config.kismet && kismetUsedPattern.matches(kismetItem.getLore().lastOrNull())) + if (config.showUsedKismets && kismetUsedPattern.matches(kismetItem.getLore().lastOrNull())) setKismetUsed() } } @@ -172,7 +172,7 @@ class CroesusChestTracker { @SubscribeEvent fun onSlotClicked(event: GuiContainerEvent.SlotClickEvent) { if (!LorenzUtils.inSkyBlock) return - if (!config.kismet) return + if (!config.showUsedKismets) return if (chestInventory != null && event.slotId == kismetSlotId) { setKismetUsed() return @@ -208,7 +208,7 @@ class CroesusChestTracker { @SubscribeEvent fun onRenderItemTipIsKismetable(event: RenderInventoryItemTipEvent) { if (!LorenzUtils.inSkyBlock) return - if (!config.kismet) return + if (!config.showUsedKismets) return if (!inCroesusInventory) return if (event.slot.slotIndex != event.slot.slotNumber) return val run = croesusSlotMapToRun(event.slot.slotIndex) ?: return |