diff options
author | Linnea Gräf <nea@nea.moe> | 2024-10-31 22:04:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 22:04:35 +0100 |
commit | 2c9132d0c755964800b710ce43c8feebd44f1299 (patch) | |
tree | 670669e61408ccdf47d9e29cb4d5f1ee3599aa4d /src | |
parent | 3115eeef02d541822470f08f298110e37fa7a1e6 (diff) | |
parent | 988e4289455b56aa6ba484a502440f640f6656fa (diff) | |
download | LocalTransactionLedger-master.tar.gz LocalTransactionLedger-master.tar.bz2 LocalTransactionLedger-master.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/Ledger.kt | 1 | ||||
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/NpcDetection.kt | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/Ledger.kt b/src/main/kotlin/moe/nea/ledger/Ledger.kt index 23d1265..a11480f 100644 --- a/src/main/kotlin/moe/nea/ledger/Ledger.kt +++ b/src/main/kotlin/moe/nea/ledger/Ledger.kt @@ -50,6 +50,7 @@ class Ledger { // You bought Cactus x32 for 465.6 Coins! // You sold Cactus x1 for 3 Coins! + // You bought back Potato x3 for 9 Coins! TODO: TRADING, FORGE, COOKIE_EATEN */ diff --git a/src/main/kotlin/moe/nea/ledger/NpcDetection.kt b/src/main/kotlin/moe/nea/ledger/NpcDetection.kt index 65693ef..3c3fe87 100644 --- a/src/main/kotlin/moe/nea/ledger/NpcDetection.kt +++ b/src/main/kotlin/moe/nea/ledger/NpcDetection.kt @@ -6,7 +6,7 @@ import java.util.regex.Pattern class NpcDetection(val ledger: LedgerLogger, val ids: ItemIdProvider) { val npcBuyPattern = - Pattern.compile("You bought (?<what>.*?) (x(?<count>$SHORT_NUMBER_PATTERN) )?for (?<coins>$SHORT_NUMBER_PATTERN) Coins!") + Pattern.compile("You bought (back )?(?<what>.*?) (x(?<count>$SHORT_NUMBER_PATTERN) )?for (?<coins>$SHORT_NUMBER_PATTERN) Coins!") val npcSellPattern = Pattern.compile("You sold (?<what>.*) (x(?<count>$SHORT_NUMBER_PATTERN) )?for (?<coins>$SHORT_NUMBER_PATTERN) Coins!") |