diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-05-16 11:02:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 11:02:39 +0200 |
commit | d4f7a7753d7ba772add76b43bcf2f692d10f25ad (patch) | |
tree | e08b5cd78bf34effeb4e5c407e655a26d7fe4740 /src/main/java/at/hannibal2/skyhanni/features/gui | |
parent | 8c87a65a2f1674599bd33522c56339aa04df8440 (diff) | |
download | skyhanni-d4f7a7753d7ba772add76b43bcf2f692d10f25ad.tar.gz skyhanni-d4f7a7753d7ba772add76b43bcf2f692d10f25ad.tar.bz2 skyhanni-d4f7a7753d7ba772add76b43bcf2f692d10f25ad.zip |
Improvement: Arrow count in Custom Scoreboard when wearing Skeleton Masters Chestplate (#1795)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/gui')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt index 162124aa3..53d8539b4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt @@ -663,10 +663,14 @@ private fun getQuiverDisplayPair(): List<ScoreboardElementType> { ).getChatColor() } else { "" - }) + when (arrowConfig.arrowAmountDisplay) { - ArrowAmountDisplay.NUMBER -> QuiverAPI.currentAmount.addSeparators() - ArrowAmountDisplay.PERCENTAGE -> "${QuiverAPI.currentAmount.asArrowPercentage()}%" - else -> QuiverAPI.currentAmount.addSeparators() + }) + if (QuiverAPI.wearingSkeletonMasterChestplate) { + "∞" + } else { + when (arrowConfig.arrowAmountDisplay) { + ArrowAmountDisplay.NUMBER -> QuiverAPI.currentAmount.addSeparators() + ArrowAmountDisplay.PERCENTAGE -> "${QuiverAPI.currentAmount.asArrowPercentage()}%" + else -> QuiverAPI.currentAmount.addSeparators() + } } return listOf( |