summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorHiZe_ <superhize@hotmail.com>2023-11-29 00:02:41 +0100
committerGitHub <noreply@github.com>2023-11-29 00:02:41 +0100
commitbee150b333b19d3c80ca6f2fcf3d05a2128def31 (patch)
treef5723f14b1a1e73c448dcd09723eace9b809a1bd /src/main/java/at/hannibal2/skyhanni/features
parent57fea067d5a598520e1e5189fe7c8d3de6d60356 (diff)
downloadskyhanni-bee150b333b19d3c80ca6f2fcf3d05a2128def31.tar.gz
skyhanni-bee150b333b19d3c80ca6f2fcf3d05a2128def31.tar.bz2
skyhanni-bee150b333b19d3c80ca6f2fcf3d05a2128def31.zip
Added Bottle of Jyrre in item Stack Size (#738)
Added bottle of Jyrre time overlay in stack size feature. #738
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
index d5569c12c..329621b4a 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
@@ -11,9 +11,11 @@ import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.ItemUtils.name
import at.hannibal2.skyhanni.utils.LorenzUtils.between
+import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
import at.hannibal2.skyhanni.utils.NumberUtil.formatNumber
import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimal
import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNeeded
+import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getBottleOfJyrreSeconds
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.StringUtils.matchRegex
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
@@ -195,6 +197,13 @@ class ItemDisplayOverlayFeatures {
}
+ if (itemNumberAsStackSize.contains(15)) {
+ if (item.getInternalNameOrNull() == "NEW_BOTTLE_OF_JYRRE".asInternalName()) {
+ val seconds = item.getBottleOfJyrreSeconds() ?: 0
+ return "§a${(seconds / 3600)}"
+ }
+ }
+
return ""
}