aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/TrackerConfig.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/TrackerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/TrackerConfig.java
index dd91010ed..a8f76cad1 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/TrackerConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/TrackerConfig.java
@@ -28,4 +28,9 @@ public class TrackerConfig {
@ConfigOption(name = "Recent Drops", desc = "Highlight the amount in green on recently gained items.")
@ConfigEditorBoolean
public boolean showRecentDrops = true;
+
+ @Expose
+ @ConfigOption(name = "Exclude Hidden", desc = "Exclude hidden items in the total price calculation.")
+ @ConfigEditorBoolean
+ public boolean excludeHiddenItemsInPrice = false;
}
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
index b20515cd4..f5510b13d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
@@ -112,7 +112,9 @@ class SkyHanniItemTracker<Data : ItemTrackerData>(
if (isInventoryOpen() || !hidden) {
items[renderable] = price
}
- profit += price
+ if (!hidden || !config.excludeHiddenItemsInPrice) {
+ profit += price
+ }
}
for (text in items.sortedDesc().keys) {