aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_bank.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-26 02:52:31 -0400
committerhistoria <[not public]>2026-06-26 02:52:31 -0400
commit3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5 (patch)
tree65610fa4fb8abe1dc7a46d00658e85e0525d397c /internal/game/cmd_bank.go
parente2d5b081f27141bb3dd89dbe595860b8a1345d55 (diff)
downloadthehouseoficarus-3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5.tar.gz
feat: simplified conversation trees and output won't overwrite prompts now
Diffstat (limited to 'internal/game/cmd_bank.go')
-rw-r--r--internal/game/cmd_bank.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/cmd_bank.go b/internal/game/cmd_bank.go
index 8d96c5f..c489ad8 100644
--- a/internal/game/cmd_bank.go
+++ b/internal/game/cmd_bank.go
@@ -58,7 +58,7 @@ func (g *Game) handleBankInput(sess *net.Session, input string) {
}
func (g *Game) writeBankPrompt(sess *net.Session) {
- sess.Write(fmt.Sprintf("\n%s", g.colorize(sess, "dialog", "Bank> ")))
+ sess.WritePrompt(g.colorize(sess, "dialog", "Bank> "))
}
func (g *Game) showBankBrowse(sess *net.Session) {
@@ -93,7 +93,7 @@ func (g *Game) showBankBrowse(sess *net.Session) {
}
if len(entries) == 0 {
- sess.WriteLine("\nYour bank is empty.")
+ sess.WriteLine("Your bank is empty.")
return
}