diff options
| author | historia <[not public]> | 2026-06-19 03:05:46 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-19 03:05:46 -0400 |
| commit | fbd1c30d7b9777c9df6653f0c393afa7a7dfa519 (patch) | |
| tree | 7d4dd5b1fb1a5f868a330caf009ac8dc4e583025 /internal/game/game.go | |
| parent | dea4a06764c507699cf9adcd1fd0a572d227aff0 (diff) | |
| download | thehouseoficarus-fbd1c30d7b9777c9df6653f0c393afa7a7dfa519.tar.gz | |
feat: science skill roughly implemented
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/internal/game/game.go b/internal/game/game.go index dff78d5..9d8a2c9 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -141,7 +141,8 @@ func classifyCommand(cmd string) CommandClass { "map", "option", "options", "alias", "unalias", "description", "desc", "queued", "color", "colors", "colortable", "prompt", "style", "stats", - "tech", "t": + "tech", "t", + "autocast", "auto", "mods", "modlist": return ClassInstant case "equip", "eq", "equipment", "wear", "wield", "remove", "unwear", "unwield": return ClassFree @@ -150,7 +151,8 @@ func classifyCommand(cmd string) CommandClass { "north", "n", "south", "s", "east", "e", "west", "w", "up", "u", "down", "d", "quit", "use", "burn", "stoke", "search", "walk", "cook", "smelt", "smith", "craft", "mix", - "id", "identify": + "id", "identify", + "trigger", "cast": return ClassActive case "eat", "fletch", "clean": return ClassFree @@ -401,6 +403,13 @@ func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawI case "id", "identify": g.doIdentify(sess, strings.Join(args, " ")) return + case "autocast", "auto": + g.doAutocast(sess, strings.Join(args, " ")) + case "mods", "modlist": + g.doMods(sess) + case "trigger", "cast": + g.doTrigger(sess, strings.Join(args, " ")) + return case "talk", "speak", "ask": g.CancelAction(p) if len(args) == 0 { |
