aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-10 21:33:44 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-10 21:33:44 +0100
commitd2aa31ee51c052aee0b6e4600cd549ede960ea6b (patch)
tree01c7e84c48cddfab6b286d3740055a437dd10b2c /src
parentde2cd8b5cb0020471e3120a5dac4e8bbd9b3150b (diff)
downloadskyhanni-d2aa31ee51c052aee0b6e4600cd549ede960ea6b.tar.gz
skyhanni-d2aa31ee51c052aee0b6e4600cd549ede960ea6b.tar.bz2
skyhanni-d2aa31ee51c052aee0b6e4600cd549ede960ea6b.zip
rename
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonChestConfig.java4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt12
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