aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-22 14:22:05 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-22 14:22:05 +0100
commitc2d34ca9ec5f61ab21e6f514726b74188b324a20 (patch)
tree910bb19ba00c07f96322fd926ffa7fc9d365cd4f
parenta7372158d4e75d7f32f0cbf607940499e767dbe5 (diff)
downloadskyhanni-c2d34ca9ec5f61ab21e6f514726b74188b324a20.tar.gz
skyhanni-c2d34ca9ec5f61ab21e6f514726b74188b324a20.tar.bz2
skyhanni-c2d34ca9ec5f61ab21e6f514726b74188b324a20.zip
Auction Highlighter now shows expired items as well.
-rw-r--r--CHANGELOG.md2
-rw-r--r--FEATURES.md2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt6
4 files changed, 8 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f42e652d9..84c266ee7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,7 +5,7 @@
### Features
+ Added **Time to Kill** - Show the time it takes to kill the Slayer boss.
+ Added skill and collection level as item stack.
-+ Added **Auction Highlighter** - Highlight own items that are sold in green.
++ Added **Auction Highlighter** - Highlight own items that are sold in green and that are expired in red.
### Garden Features
+ Added **Copper Price** - Show copper to coin prices inside the Sky Mart inventory.
diff --git a/FEATURES.md b/FEATURES.md
index 59fbfe4cf..ad7556efb 100644
--- a/FEATURES.md
+++ b/FEATURES.md
@@ -57,7 +57,7 @@
+ Show the type of stats for the tuning point templates.
+ Highlight depleted Bonzo's Masks in your inventory.
+ Highlight stuff that is missing in the skyblock level guide inventory.
-+ **Auction Highlighter** - Highlight own items that are sold in green.
++ **Auction Highlighter** - Highlight own items that are sold in green and that are expired in red.
## Item Abilities
- Show the cooldown of items in the inventory.
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java b/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java
index 912e09531..5f2b46ca8 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java
@@ -140,7 +140,7 @@ public class Inventory {
@Expose
@ConfigOption(name = "Highlight Auctions",
- desc = "Highlight own items that are sold in green.")
+ desc = "Highlight own items that are sold in green and that are expired in red.")
@ConfigEditorBoolean
public boolean highlightAuctions = true;
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt
index ba1d3a680..453707c5b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt
@@ -28,9 +28,13 @@ class AuctionsHighlighter {
if (slot.slotNumber != slot.slotIndex) continue
val stack = slot.stack ?: continue
- if (stack.getLore().any { it == "§7Status: §aSold!" }) {
+ val lore = stack.getLore()
+ if (lore.any { it == "§7Status: §aSold!" }) {
slot highlight LorenzColor.GREEN
}
+ if (lore.any { it == "§7Status: §cExpired!" }) {
+ slot highlight LorenzColor.RED
+ }
}
}
} \ No newline at end of file