aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-18 20:03:13 -0400
committerhistoria <[not public]>2026-09-18 20:03:13 -0400
commit79764732406d6484f67d3dec045483dcb5d08c28 (patch)
tree7a64e8581a540b97ed554f5723e2d587424ab1c6 /internal/game/game.go
parentf1e461ab6aec6b9bf056bbe2daa88a251e0f21da (diff)
downloadthehouseoficarus-79764732406d6484f67d3dec045483dcb5d08c28.tar.gz
feat: better card ascii art
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index af2ff66..c0c6488 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -764,6 +764,10 @@ func (g *Game) ProcessQueuedCommands() {
func (g *Game) buildCraftIndex() {
items, err := g.ItemStore.LoadAll()
if err != nil {
+ // A malformed item file must not silently empty every crafting menu;
+ // surface it so the operator can fix the file (the validator also
+ // reports it).
+ log.Printf("craft index: item load failed; craft index left empty: %v", err)
return
}
g.CraftIndex.Build(items)