diff options
| author | historia <[not public]> | 2026-09-15 13:56:10 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-15 13:56:48 -0400 |
| commit | b3568f03e4103dd46db2ccc680fbab0a6454d604 (patch) | |
| tree | db3f6bb4f3d7c1deefbcd50de0f5022756d6b9ae /internal/game/game.go | |
| parent | f4ea40c4b3589104dfaced3481ba19c5735889ae (diff) | |
| download | thehouseoficarus-b3568f03e4103dd46db2ccc680fbab0a6454d604.tar.gz | |
fix: telnet buffer reuse, bank stack handling,
transport casino gate, and admin cache invalidation
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/game/game.go b/internal/game/game.go index 23e0635..822042e 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -237,6 +237,10 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) { } parts := strings.Fields(strings.ToLower(input)) + if len(parts) == 0 { + g.reprompt(sess) + return + } cmd := parts[0] if len(parts) == 1 { @@ -369,6 +373,12 @@ func (g *Game) buildCraftIndex() { g.CraftIndex.Build(items) } +// RebuildCraftIndex refreshes the craft index after item definitions change +// on disk (wired into the admin web editor's item mutation paths). +func (g *Game) RebuildCraftIndex() { + g.buildCraftIndex() +} + type pendingDepletion struct { instanceKey string objDefID string |
