diff options
| author | historia <[not public]> | 2026-06-19 02:51:05 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-19 02:51:05 -0400 |
| commit | dea4a06764c507699cf9adcd1fd0a572d227aff0 (patch) | |
| tree | 25769809d34db70cf0bec7d8c6d3422c23780a55 /internal/game/game.go | |
| parent | 2ae4a052fd1c15c3c6ba0f1dd324d896371aaffc (diff) | |
| download | thehouseoficarus-dea4a06764c507699cf9adcd1fd0a572d227aff0.tar.gz | |
feat: scavenge/scrap system started
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 { |
