From 1091d0fae96d152c11aec1bb2dd949f51ed5aa1e Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 5 Oct 2026 19:20:17 -0400 Subject: feat: shared tls cert, validation fixes --- internal/item/item.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'internal/item') diff --git a/internal/item/item.go b/internal/item/item.go index c083d8e..6cb0e42 100644 --- a/internal/item/item.go +++ b/internal/item/item.go @@ -218,6 +218,22 @@ func (d *ItemDef) Stats() ItemStats { type CraftList []CraftDef +// KnownCraftKeys is the set of craft type/subtype names the production engine +// understands, plus "combine" (which has its own path). A recipe whose type +// and subtype are both outside this set produces a non-advancing action, so +// the validator rejects it. +var KnownCraftKeys = map[string]bool{ + "combine": true, + "cooking": true, + "smelting": true, + "smithing": true, + "crafting": true, + "fletching": true, + "pharmacy": true, + "cleaning": true, + "construction": true, +} + func (d *ItemDef) FirstCraft() *CraftDef { if len(d.Craft) == 0 { return nil -- cgit v1.2.3