Commit 4e1699a2 authored by ceddral's avatar ceddral
Browse files

game: menu: hide token count if count == 1

parent 534a1eca
......@@ -60,7 +60,10 @@ func (m *GameMenu) Redraw(s GameState) {
for t := Token(0); t < tMax; t++ {
count := p.tokens[t]
if count > 0 {
buf = append(buf, fmt.Sprintf("%d%c", count, t.toByte())...)
if count > 1 {
buf = append(buf, fmt.Sprintf("%d", count)...)
}
buf = append(buf, fmt.Sprintf("%c", t.toByte())...)
}
}
v.DrawTextClearLine(fg, bg, buf, 0, line)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment