aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-19 02:51:05 -0400
committerhistoria <[not public]>2026-06-19 02:51:05 -0400
commitdea4a06764c507699cf9adcd1fd0a572d227aff0 (patch)
tree25769809d34db70cf0bec7d8c6d3422c23780a55 /internal/game/game.go
parent2ae4a052fd1c15c3c6ba0f1dd324d896371aaffc (diff)
downloadthehouseoficarus-dea4a06764c507699cf9adcd1fd0a572d227aff0.tar.gz
feat: scavenge/scrap system started
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go6
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 {