Module: Lich::DragonRealms::DRBanking::Pattern

Defined in:
documented/dragonrealms/drinfomon/drbanking.rb

Overview

Pattern constants for bank transaction parsing

Constant Summary collapse

DEPOSIT_PORTION =

Deposit a portion of money "The clerk slides a small metal box across the counter into which you drop 5 gold Kronars"

/The clerk slides a small metal box across the counter into which you drop (?<amount>\d+) (?<denomination>\w+) (?<currency>Kronars|Lirums|Dokoras)/i.freeze
DEPOSIT_ALL_TELLER =

Deposit all money (teller bank) "The clerk slides a small metal box across the counter into which you drop all your Kronars."

/The clerk slides a small metal box across the counter into which you drop all your (?<currency>Kronars|Lirums|Dokoras)\.\s+She counts them carefully and records the deposit in her ledger/i.freeze
DEPOSIT_ALL_JAR =

Deposit all money (jar bank - Hib, etc.) "You cross through the old balance on the label and update it to reflect your new balance"

/You cross through the old balance on the label and update it to reflect your new balance/i.freeze
WITHDRAW_PORTION =

Withdraw a portion of money "The clerk counts out 5 gold Kronars and hands them over, making a notation in her ledger" "You count out 5 gold Dokoras and quickly pocket them, updating the notation on your jar"

/(?:The clerk counts|You count) out (?<amount>\d+) (?<denomination>platinum|gold|silver|bronze|copper) (?<currency>Kronars|Lirums|Dokoras) (?:and hands them over, making a notation in her ledger|and quickly pocket them, updating the notation on your jar)/i.freeze
WITHDRAW_ALL =

Withdraw all money "The clerk counts out all your Kronars and hands them over" "You count out all of your Dokoras and quickly pocket them"

/(?:The clerk counts out all your|You count out all of your) (?<currency>Kronars|Lirums|Dokoras)/i.freeze
BALANCE_CHECK =

Balance check "it looks like your current balance is 5 platinum Kronars" "Here we are. Your current balance is 10 gold, 5 silver Lirums" "As expected, there are 100 copper Dokoras"

/(?:it looks like|"Here we are\.)\s*[Yy]our current balance is (?<balance>.*)\s+(?<currency>Kronars|Lirums|Dokoras)|As expected, there are (?<balance>.*)\s+(?<currency>Kronars|Lirums|Dokoras)/i.freeze
NO_ACCOUNT =

No account at this bank

/you do not seem to have an account with us|you should find a new deposit jar for your financial needs/i.freeze