diff options
| author | historia <[not public]> | 2026-06-19 18:20:26 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-19 18:20:26 -0400 |
| commit | 0ea4eec5dd2122c6704216971eb1249276297867 (patch) | |
| tree | 430fbbef04e837820f1d031c190f52ecd6112e25 /internal/game/prompt.go | |
| parent | 3a58125d14bb307f861b38c6c5b0a63babde7e08 (diff) | |
| download | thehouseoficarus-0ea4eec5dd2122c6704216971eb1249276297867.tar.gz | |
shop fixes, 'toggle' completely removed, movement speed increased
Diffstat (limited to 'internal/game/prompt.go')
| -rw-r--r-- | internal/game/prompt.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/prompt.go b/internal/game/prompt.go index c3768fe..2ecf367 100644 --- a/internal/game/prompt.go +++ b/internal/game/prompt.go @@ -12,7 +12,7 @@ import ( func (g *Game) promptStr(sess *net.Session) string { prompt := "> " - if p, ok := sess.Player.(*player.Player); ok && p != nil { + if p := sess.Player; p != nil { if p.Prompt != "" { prompt = p.Prompt } @@ -28,8 +28,8 @@ func (g *Game) expandPromptColors(sess *net.Session, text string) string { } func (g *Game) expandPromptVars(sess *net.Session, text string) string { - p, ok := sess.Player.(*player.Player) - if !ok || p == nil { + p := sess.Player + if p == nil { return text } |
