blob: 13b6d9589aca6d382665775b26a15011a4d3093b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package moe.nea.firmament.util
import moe.nea.firmament.repo.HypixelStaticData
enum class BazaarPriceStrategy {
BUY_ORDER,
SELL_ORDER,
NPC_SELL;
fun getSellPrice(skyblockId: SkyblockId): Double {
val bazaarEntry = HypixelStaticData.bazaarData[skyblockId.asBazaarStock] ?: return 0.0
return when (this) {
BUY_ORDER -> bazaarEntry.quickStatus.sellPrice
SELL_ORDER -> bazaarEntry.quickStatus.buyPrice
NPC_SELL -> TODO()
}
}
}
|