aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-21 01:37:57 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-21 01:37:57 +0100
commit96d27f0cee274c6a687266c3e0aa315742094929 (patch)
tree24fc6e4f3db1f27ff0a43c6bc0c513bba19cf122 /src/main/kotlin/moe/nea/ledger
parent175379be77dd530bc019e34d3937950df22e4f8a (diff)
downloadLocalTransactionLedger-96d27f0cee274c6a687266c3e0aa315742094929.tar.gz
LocalTransactionLedger-96d27f0cee274c6a687266c3e0aa315742094929.tar.bz2
LocalTransactionLedger-96d27f0cee274c6a687266c3e0aa315742094929.zip
fix: Add other corpse keys
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger')
-rw-r--r--src/main/kotlin/moe/nea/ledger/modules/MineshaftCorpseDetection.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/modules/MineshaftCorpseDetection.kt b/src/main/kotlin/moe/nea/ledger/modules/MineshaftCorpseDetection.kt
index 049ea39..60b06ae 100644
--- a/src/main/kotlin/moe/nea/ledger/modules/MineshaftCorpseDetection.kt
+++ b/src/main/kotlin/moe/nea/ledger/modules/MineshaftCorpseDetection.kt
@@ -39,7 +39,6 @@ class MineshaftCorpseDetection : BorderedTextTracker() {
}
override fun onBorderedTextFinished(enclosed: List<ChatReceived>) {
- // TODO: test this once profile swapping has been re-enabled
val rewards = enclosed.asSequence()
.dropWhile { it.message != " REWARDS" }
.drop(1)
@@ -68,7 +67,10 @@ class MineshaftCorpseDetection : BorderedTextTracker() {
}
val corpseNameToKey = mapOf(
- "LAPIS" to ItemId.NIL
+ "LAPIS" to ItemId.NIL,
+ "VANGUARD" to ItemId("SKELETON_KEY"),
+ "UMBER" to ItemId("UMBER_KEY"),
+ "TUNGSTEN" to ItemId("TUNGSTEN_KEY"),
)
@Inject