diff options
| author | historia <[not public]> | 2026-06-19 02:40:22 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-19 02:40:22 -0400 |
| commit | 2ae4a052fd1c15c3c6ba0f1dd324d896371aaffc (patch) | |
| tree | 3caef60f71a462b7e7ace668053e1f02fb61db15 /internal/game/game.go | |
| parent | 86aec0e14eb6fec0a39d742bab1761dad8d7012c (diff) | |
| download | thehouseoficarus-2ae4a052fd1c15c3c6ba0f1dd324d896371aaffc.tar.gz | |
feat: rough technology skill added
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 8b5f924..15236f4 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -82,6 +82,7 @@ func (g *Game) SetHub(hub *net.Hub) { g.Hub = hub hub.OnRemove(func(sess *net.Session) { if p, ok := sess.Player.(*player.Player); ok { + p.DeactivateAllTechs() g.charsMu.Lock() delete(g.loggedInChars, p.Name) g.charsMu.Unlock() @@ -139,7 +140,8 @@ func classifyCommand(cmd string) CommandClass { "look", "l", "exits", "help", "map", "option", "options", "alias", "unalias", "description", "desc", "queued", "color", "colors", - "colortable", "prompt", "style", "stats": + "colortable", "prompt", "style", "stats", + "tech", "t": return ClassInstant case "equip", "eq", "equipment", "wear", "wield", "remove", "unwear", "unwield": return ClassFree @@ -316,6 +318,8 @@ func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawI g.doScore(sess) case "stats": g.doStats(sess) + case "tech", "t": + g.doTech(sess, strings.Join(args, " ")) case "i", "inv", "inventory": g.doInventory(sess) case "quit": |
