From 94a06fbbe682701ca4d4bd2a70cd74d8df29c932 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 00:44:47 -0400 Subject: refactor: replaced map[string]any with typed structs for Data --- internal/game/cmd_verbs.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/game/cmd_verbs.go') diff --git a/internal/game/cmd_verbs.go b/internal/game/cmd_verbs.go index f66dc74..9ee1607 100644 --- a/internal/game/cmd_verbs.go +++ b/internal/game/cmd_verbs.go @@ -3,6 +3,7 @@ package game import ( "strings" + "thehouseoficarus/internal/action" "thehouseoficarus/internal/net" "thehouseoficarus/internal/world" ) @@ -89,8 +90,8 @@ func (g *Game) executeVerbs(sess *net.Session, args []string, rawInput string) { addUnique(§ionObjs, &seen, "use "+name) for _, r := range recipes { if info, ok := productionTypes[r.FirstCraft().Type]; ok { - if info.ActionType != "combine" && info.ActionType != "fletch" && info.ActionType != "mix" { - addUnique(§ionObjs, &seen, info.ActionType) + if info.ActionType != action.TypeCombine && info.ActionType != action.TypeFletch && info.ActionType != action.TypeMix { + addUnique(§ionObjs, &seen, string(info.ActionType)) } } for _, c := range r.FirstCraft().Consume { -- cgit v1.2.3