diff options
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/game/game.go b/internal/game/game.go index 15236f4..dff78d5 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -149,7 +149,8 @@ func classifyCommand(cmd string) CommandClass { "attack", "kill", "north", "n", "south", "s", "east", "e", "west", "w", "up", "u", "down", "d", - "quit", "use", "burn", "stoke", "search", "walk", "cook", "smelt", "smith", "craft", "mix": + "quit", "use", "burn", "stoke", "search", "walk", "cook", "smelt", "smith", "craft", "mix", + "id", "identify": return ClassActive case "eat", "fletch", "clean": return ClassFree @@ -397,6 +398,9 @@ func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawI case "mix": g.doMix(sess, strings.Join(args, " ")) return + case "id", "identify": + g.doIdentify(sess, strings.Join(args, " ")) + return case "talk", "speak", "ask": g.CancelAction(p) if len(args) == 0 { |
