diff options
| author | historia <[not public]> | 2026-06-27 02:49:01 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-27 02:49:01 -0400 |
| commit | 1cab9ca20e24742f770a676f84e4ed9f1636f297 (patch) | |
| tree | aad74b0f365515d971dc3ae8c0e79e0541015561 /internal/game/cmd_prompt.go | |
| parent | 6f3d21d6e7f01155ce0c461857a053b43d329392 (diff) | |
| download | thehouseoficarus-1cab9ca20e24742f770a676f84e4ed9f1636f297.tar.gz | |
feat: exits added to prompt
Diffstat (limited to 'internal/game/cmd_prompt.go')
| -rw-r--r-- | internal/game/cmd_prompt.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/internal/game/cmd_prompt.go b/internal/game/cmd_prompt.go index 110d08c..3596ebf 100644 --- a/internal/game/cmd_prompt.go +++ b/internal/game/cmd_prompt.go @@ -9,7 +9,7 @@ import ( func (g *Game) executePrompt(sess *net.Session, args []string, rawInput string) { if len(args) == 0 { - g.doPrompt(sess, "") + g.doHelp(sess, "prompt") } else { msgStart := strings.Index(strings.ToLower(rawInput), "prompt ") + 7 if msgStart >= 7 && msgStart < len(rawInput) { @@ -23,16 +23,6 @@ func (g *Game) executePrompt(sess *net.Session, args []string, rawInput string) func (g *Game) doPrompt(sess *net.Session, input string) { p := sess.Player - if input == "" { - prompt := p.Prompt - if prompt == "" { - prompt = "> " - } - sess.WriteLine(fmt.Sprintf("Prompt: %s", prompt)) - sess.WriteLine("Use 'prompt <value>' to change. Use 'prompt none' for blank. Use 'prompt reset' to restore default.") - return - } - if input == "reset" { p.Prompt = "> " g.AccountStore.SaveCharacter(p) |
