aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/modules
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-21 01:54:06 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-21 01:54:06 +0100
commit2cd351d816b7dad8c3251fcd640ff697335598a6 (patch)
tree6b84c071ae75925b760d55872f85636541b5d209 /src/main/kotlin/moe/nea/ledger/modules
parent96d27f0cee274c6a687266c3e0aa315742094929 (diff)
downloadLocalTransactionLedger-2cd351d816b7dad8c3251fcd640ff697335598a6.tar.gz
LocalTransactionLedger-2cd351d816b7dad8c3251fcd640ff697335598a6.tar.bz2
LocalTransactionLedger-2cd351d816b7dad8c3251fcd640ff697335598a6.zip
feat: Add support for chocolate and copper to npc buysHEADmaster
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/modules')
-rw-r--r--src/main/kotlin/moe/nea/ledger/modules/NpcDetection.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/modules/NpcDetection.kt b/src/main/kotlin/moe/nea/ledger/modules/NpcDetection.kt
index c17cdc8..95b8aa5 100644
--- a/src/main/kotlin/moe/nea/ledger/modules/NpcDetection.kt
+++ b/src/main/kotlin/moe/nea/ledger/modules/NpcDetection.kt
@@ -10,6 +10,7 @@ import moe.nea.ledger.TransactionType
import moe.nea.ledger.asIterable
import moe.nea.ledger.events.BeforeGuiAction
import moe.nea.ledger.events.ChatReceived
+import moe.nea.ledger.events.ExtraSupplyIdEvent
import moe.nea.ledger.getDisplayNameU
import moe.nea.ledger.getInternalId
import moe.nea.ledger.getLore
@@ -46,6 +47,11 @@ class NpcDetection @Inject constructor(val ledger: LedgerLogger, val ids: ItemId
}
}
+ @SubscribeEvent
+ fun addChocolate(event: ExtraSupplyIdEvent) {
+ event.store("Chocolate", ItemId("SKYBLOCK_CHOCOLATE"))
+ }
+
@Inject
lateinit var errorUtil: ErrorUtil