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

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

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" Deposit a portion of money.

Matches the output when a player deposits a specific amount of currency.

Examples:

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

See Also:

/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." Deposit all money at a teller bank.

Matches the output when a player deposits all their currency at a teller.

Examples:

"The clerk slides a small metal box across the counter into which you drop all your Kronars."

See Also:

/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" Deposit all money at a jar bank.

Matches the output when a player updates their balance in a jar bank.

Examples:

"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" Withdraw a portion of money.

Matches the output when a player withdraws a specific amount of currency.

Examples:

"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" Withdraw all money.

Matches the output when a player withdraws all their currency.

Examples:

"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" Check the balance of a bank account.

Matches the output when a player checks their current balance.

Examples:

"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 Indicates that the player does not have an account at the bank.

Matches the output when a player tries to access a bank without an account.

Examples:

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