aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_bank.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 15:40:48 -0400
committerhistoria <[not public]>2026-06-25 15:40:48 -0400
commitabd612c15799f604e671e83dc7c410ed2b44185f (patch)
tree0597ca92350de73aac2a7cf26b2f2d6595dac0cc /internal/game/cmd_bank.go
parent2725e2927a1595c7b100d942d1f14146252adeb7 (diff)
downloadthehouseoficarus-abd612c15799f604e671e83dc7c410ed2b44185f.tar.gz
slop refactor
Diffstat (limited to 'internal/game/cmd_bank.go')
-rw-r--r--internal/game/cmd_bank.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/game/cmd_bank.go b/internal/game/cmd_bank.go
index b31dd16..8d96c5f 100644
--- a/internal/game/cmd_bank.go
+++ b/internal/game/cmd_bank.go
@@ -5,9 +5,10 @@ import (
"sort"
"strings"
+ "thehouseoficarus/internal/behavior"
"thehouseoficarus/internal/net"
- "thehouseoficarus/internal/object"
"thehouseoficarus/internal/player"
+ "thehouseoficarus/internal/ui"
)
func (g *Game) executeBank(sess *net.Session, args []string, rawInput string) {
@@ -65,7 +66,7 @@ func (g *Game) showBankBrowse(sess *net.Session) {
unicode := p.OptionBool("unicode")
- t := Table{
+ t := ui.Table{
Title: "Bank Contents",
Columns: []string{"#", "Item", "Quantity"},
}
@@ -240,7 +241,7 @@ func (g *Game) doBankWithdraw(sess *net.Session, input string) {
}
lower := strings.ToLower(input)
for _, e := range entries {
- if object.WordPrefixMatch(e.name, lower) {
+ if behavior.WordPrefixMatch(e.name, lower) {
matches = append(matches, e)
}
}