From 2cd351d816b7dad8c3251fcd640ff697335598a6 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 21 Dec 2024 01:54:06 +0100 Subject: feat: Add support for chocolate and copper to npc buys --- src/main/kotlin/moe/nea/ledger/modules/NpcDetection.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/kotlin/moe/nea/ledger/modules') 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 -- cgit