From abd612c15799f604e671e83dc7c410ed2b44185f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 15:40:48 -0400 Subject: slop refactor --- internal/game/cmd_bank.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'internal/game/cmd_bank.go') 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) } } -- cgit v1.2.3