aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-07 23:10:13 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-07 23:10:13 +0100
commit3acf36fbd07686431b8fbb5484f1f70b52651dc5 (patch)
tree2e7a582bc481c73bbd268a6fe8de57e5a5cf4e95 /src/main/kotlin/moe/nea/ledger/LedgerLogger.kt
parent0ca988c907c7e8e26029f59cc098e6be5e008ee5 (diff)
downloadLocalTransactionLedger-3acf36fbd07686431b8fbb5484f1f70b52651dc5.tar.gz
LocalTransactionLedger-3acf36fbd07686431b8fbb5484f1f70b52651dc5.tar.bz2
LocalTransactionLedger-3acf36fbd07686431b8fbb5484f1f70b52651dc5.zip
Add kuudra chest detection
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")