aboutsummaryrefslogtreecommitdiff
path: root/internal/game/core_hacking.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 17:05:14 -0400
committerhistoria <[not public]>2026-10-05 17:05:14 -0400
commite42952469dadfb3535633c66c881050ac128703c (patch)
treea78f7396b72cdbd6fa4f6c454c830f40cf2ad0cb /internal/game/core_hacking.go
parent90ad8c0c33b519d5830c69d4128bdc984b5e9de8 (diff)
downloadthehouseoficarus-e42952469dadfb3535633c66c881050ac128703c.tar.gz
fix: gather verbs, walk oom, admin path bypass, roulette refund
Diffstat (limited to 'internal/game/core_hacking.go')
-rw-r--r--internal/game/core_hacking.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/game/core_hacking.go b/internal/game/core_hacking.go
index 0dad4c8..fcfde20 100644
--- a/internal/game/core_hacking.go
+++ b/internal/game/core_hacking.go
@@ -34,7 +34,9 @@ func (g *Game) handleHackingInput(sess *net.Session, input string) {
hs.Started = true
output, done, won := hs.Minigame.HandleInput(input)
- sess.WriteLine(output)
+ // Minigames author inline color tags (e.g. {C4}...{/}); expand them here
+ // because Session.WriteLine only handles ANSI, not tag expansion.
+ sess.WriteLine(g.expandTags(sess, output))
if done {
g.endHacking(sess, p, true, won)