diff options
| author | historia <[not public]> | 2026-10-03 01:38:58 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 01:38:58 -0400 |
| commit | 0ec8f3692960a064616e630c914058298b22897b (patch) | |
| tree | 2b51327eb66be7df8fdcd7c12cc306ca6fa84891 /internal/game/game.go | |
| parent | 82e571d227feeafd0af4011e701ce26b99c5e3d9 (diff) | |
| download | thehouseoficarus-0ec8f3692960a064616e630c914058298b22897b.tar.gz | |
feat: replaced roulette wheel graphic with line-by-line 'spin'
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/game/game.go b/internal/game/game.go index 3357077..e5192c0 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -573,11 +573,15 @@ func playerDataFileName(relPath string) (name, kind string, ok bool) { } func (g *Game) writePrompt(sess *net.Session) { - sess.WritePrompt(g.promptStr(sess)) + if !g.rouletteSpinning(sess) { + sess.WritePrompt(g.promptStr(sess)) + } } func (g *Game) reprompt(sess *net.Session) { - sess.Reprompt(g.promptStr(sess)) + if !g.rouletteSpinning(sess) { + sess.Reprompt(g.promptStr(sess)) + } } func (g *Game) handleGameCommand(sess *net.Session, input string) { |
