feat: add "showing prices for x" message to multiply prices
This commit is contained in:
@@ -48,10 +48,16 @@ object PriceData : FirmamentFeature {
|
|||||||
}
|
}
|
||||||
val sbId = it.stack.skyBlockId
|
val sbId = it.stack.skyBlockId
|
||||||
val stackSize = it.stack.count
|
val stackSize = it.stack.count
|
||||||
val multiplier = if (TConfig.stackSizeKey.isPressed(atLeast = true)) stackSize else 1
|
val isShowingStack = TConfig.stackSizeKey.isPressed(atLeast = true)
|
||||||
|
val multiplier = if (isShowingStack) stackSize else 1
|
||||||
val multiplierText =
|
val multiplierText =
|
||||||
Text.literal("[").append(TConfig.stackSizeKey.format().string).append(" to show x").append("${stackSize}]")
|
if (isShowingStack)
|
||||||
.darkGrey()
|
tr("firmament.tooltip.multiply", "Showing prices for x${stackSize}").darkGrey()
|
||||||
|
else
|
||||||
|
tr(
|
||||||
|
"firmament.tooltip.multiply.hint",
|
||||||
|
"[${TConfig.stackSizeKey.format()}] to show x${stackSize}"
|
||||||
|
).darkGrey()
|
||||||
val bazaarData = HypixelStaticData.bazaarData[sbId]
|
val bazaarData = HypixelStaticData.bazaarData[sbId]
|
||||||
val lowestBin = HypixelStaticData.lowestBin[sbId]
|
val lowestBin = HypixelStaticData.lowestBin[sbId]
|
||||||
if (bazaarData != null) {
|
if (bazaarData != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user