Bad pets menu

This commit is contained in:
nea
2023-06-03 14:24:48 +02:00
parent 06a8ace53c
commit 9477a32ad5
5 changed files with 74 additions and 3 deletions

View File

@@ -45,7 +45,13 @@ data class SBItemStack(
val neuItem: NEUItem?,
val stackSize: Int,
) {
fun asItemStack(): ItemStack? {
constructor(skyblockId: SkyblockId, stackSize: Int = 1) : this(
skyblockId,
RepoManager.getNEUItem(skyblockId),
stackSize
)
fun asItemStack(): ItemStack {
if (skyblockId == SkyblockId.COINS)
return ItemCache.coinItem(stackSize)
return neuItem.asItemStack(idHint = skyblockId).copyWithCount(stackSize)