aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/LedgerLogger.kt')
-rw-r--r--src/main/kotlin/moe/nea/ledger/LedgerLogger.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt b/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
index e8c15ea..5403d92 100644
--- a/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
+++ b/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
@@ -149,6 +149,7 @@ enum class TransactionType {
KAT_TIMESKIP,
KAT_UPGRADE,
KISMET_REROLL,
+ KUUDRA_CHEST_OPEN,
NPC_BUY,
NPC_SELL,
}
@@ -158,9 +159,14 @@ value class ItemId(
val string: String
) {
fun singleItem(): Pair<ItemId, Double> {
- return Pair(this, 1.0)
+ return withStackSize(1)
}
+ fun withStackSize(size: Number): Pair<ItemId, Double> {
+ return Pair(this, size.toDouble())
+ }
+
+
companion object {
val COINS = ItemId("SKYBLOCK_COIN")
val BITS = ItemId("SKYBLOCK_BIT")