diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-07-02 09:00:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 09:00:36 +0200 |
commit | 8d0758ecf3ccffef632a3d6e2c84fd705a0035b7 (patch) | |
tree | 0a533a927f1834ac23ada7dfe77a5d1dea9b2109 /src/main/java/at/hannibal2/skyhanni/test | |
parent | 30b08ee4185f6924857762f0ece55598a2a24bea (diff) | |
download | skyhanni-8d0758ecf3ccffef632a3d6e2c84fd705a0035b7.tar.gz skyhanni-8d0758ecf3ccffef632a3d6e2c84fd705a0035b7.tar.bz2 skyhanni-8d0758ecf3ccffef632a3d6e2c84fd705a0035b7.zip |
Fix: Gillsplash in Estimated Item Value (#2173)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index e718593f3..2a5092f27 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -46,6 +46,7 @@ import at.hannibal2.skyhanni.utils.NEUItems.getItemStack import at.hannibal2.skyhanni.utils.NEUItems.getItemStackOrNull import at.hannibal2.skyhanni.utils.NEUItems.getNpcPriceOrNull import at.hannibal2.skyhanni.utils.NEUItems.getPriceOrNull +import at.hannibal2.skyhanni.utils.NEUItems.getRawCraftCostOrNull import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators import at.hannibal2.skyhanni.utils.OSUtils import at.hannibal2.skyhanni.utils.ReflectionUtils.makeAccessible @@ -469,6 +470,15 @@ object SkyHanniDebugsAndTests { } @SubscribeEvent + fun onSHowCraftPrice(event: LorenzToolTipEvent) { + if (!LorenzUtils.inSkyBlock) return + if (!debugConfig.showCraftPrice) return + val price = event.itemStack.getInternalNameOrNull()?.getRawCraftCostOrNull() ?: return + + event.toolTip.add("ยง7Craft price: ${price.addSeparators()}") + } + + @SubscribeEvent fun onShowBzPrice(event: LorenzToolTipEvent) { if (!LorenzUtils.inSkyBlock) return if (!debugConfig.showBZPrice) return |