diff options
author | Linnea Gräf <nea@nea.moe> | 2024-12-19 22:13:32 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-12-19 22:13:32 +0100 |
commit | 175379be77dd530bc019e34d3937950df22e4f8a (patch) | |
tree | 26667fda120efefa857655583f622f170856bd38 /src/main/kotlin/moe/nea/ledger/ItemChange.kt | |
parent | 7c4b2e089fa23622799bc06a08f6932197365368 (diff) | |
download | LocalTransactionLedger-175379be77dd530bc019e34d3937950df22e4f8a.tar.gz LocalTransactionLedger-175379be77dd530bc019e34d3937950df22e4f8a.tar.bz2 LocalTransactionLedger-175379be77dd530bc019e34d3937950df22e4f8a.zip |
feat: Items bought for other items at NPCs
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/ItemChange.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/ItemChange.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/ItemChange.kt b/src/main/kotlin/moe/nea/ledger/ItemChange.kt index 186a4e3..fda709c 100644 --- a/src/main/kotlin/moe/nea/ledger/ItemChange.kt +++ b/src/main/kotlin/moe/nea/ledger/ItemChange.kt @@ -59,6 +59,7 @@ data class ItemChange( } fun unpairGain(pair: Pair<ItemId, Double>) = unpair(ChangeDirection.GAINED, pair) + fun unpairLose(pair: Pair<ItemId, Double>) = unpair(ChangeDirection.LOST, pair) fun gain(itemId: ItemId, amount: Number): ItemChange { return ItemChange(itemId, amount.toDouble(), ChangeDirection.GAINED) |