aboutsummaryrefslogtreecommitdiff
path: root/internal/game/production_menu.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-29 01:41:49 -0400
committerhistoria <[not public]>2026-06-29 01:41:49 -0400
commit12ed73f9ff9de1a145683de8a73c170613371979 (patch)
tree8b35d3dfda8231edcbc33e2fc2eb68000128e48c /internal/game/production_menu.go
parente9d87838590a02c7ca028fad8cd16e42a582dd32 (diff)
downloadthehouseoficarus-12ed73f9ff9de1a145683de8a73c170613371979.tar.gz
wrap_width and table improvements, targeting 80 character default width
Diffstat (limited to 'internal/game/production_menu.go')
-rw-r--r--internal/game/production_menu.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/production_menu.go b/internal/game/production_menu.go
index f625d54..bc2fccc 100644
--- a/internal/game/production_menu.go
+++ b/internal/game/production_menu.go
@@ -169,7 +169,7 @@ func (g *Game) showProductionTable(sess *net.Session, p *player.Player, items []
unicode := p.OptionBool("unicode")
sess.WriteLine("")
- for _, line := range tbl.Render(unicode) {
+ for _, line := range tbl.Render(unicode, p.OptionInt("wrap_width")) {
sess.WriteLine(line)
}
@@ -350,7 +350,7 @@ func (g *Game) showMenuTable(sess *net.Session, title string, names []string) {
}
unicode := p.OptionBool("unicode")
sess.WriteLine("")
- for _, line := range tbl.Render(unicode) {
+ for _, line := range tbl.Render(unicode, p.OptionInt("wrap_width")) {
sess.WriteLine(line)
}
}