aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-19 02:08:55 -0400
committerhistoria <[not public]>2026-06-19 02:08:55 -0400
commit458916fb78dcef3ff77cb29b7ba98d9f646819fc (patch)
tree19cd8b8eef41a1aa00d155bf7953ad2770f91a4c /internal/game/game.go
parent97a1a908b9e6e6d3516628c139c9b64262b4fe08 (diff)
downloadthehouseoficarus-458916fb78dcef3ff77cb29b7ba98d9f646819fc.tar.gz
feat: rough pharmacy skill added
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index a1cba83..8b5f924 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -139,7 +139,7 @@ func classifyCommand(cmd string) CommandClass {
"look", "l", "exits", "help",
"map", "option", "options", "alias", "unalias",
"description", "desc", "queued", "color", "colors",
- "colortable", "prompt", "style":
+ "colortable", "prompt", "style", "stats":
return ClassInstant
case "equip", "eq", "equipment", "wear", "wield", "remove", "unwear", "unwield":
return ClassFree
@@ -147,9 +147,9 @@ 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":
+ "quit", "use", "burn", "stoke", "search", "walk", "cook", "smelt", "smith", "craft", "mix":
return ClassActive
- case "eat", "fletch":
+ case "eat", "fletch", "clean":
return ClassFree
}
if _, ok := verbAliases[cmd]; ok {
@@ -314,6 +314,8 @@ func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawI
}
case "sc", "score":
g.doScore(sess)
+ case "stats":
+ g.doStats(sess)
case "i", "inv", "inventory":
g.doInventory(sess)
case "quit":
@@ -385,6 +387,12 @@ func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawI
case "fletch":
g.doFletch(sess, strings.Join(args, " "))
return
+ case "clean":
+ g.doClean(sess, strings.Join(args, " "))
+ return
+ case "mix":
+ g.doMix(sess, strings.Join(args, " "))
+ return
case "talk", "speak", "ask":
g.CancelAction(p)
if len(args) == 0 {