Every recipe type registered from shared scripts

This commit is contained in:
2026-11-03 15:34:41 -03:00
committed by paula
parent 65113862f7
commit b329a61d96
25 changed files with 334 additions and 371 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ const engine_recipes = new Map<string, z.ZodType>([
]);
// a mod's own types, like "bworld:cooking" for its cooking pot, are only stored by the engine. the mod parses them,
// with ctx.recipes.register_type, or reads them with ctx.recipes.list and checks them
// with ctx.recipes.register_type
const recipe_schema = by_kind(
"type",
(type) => engine_recipes.get(type) ?? (ID_PATTERN.test(type) ? json_object : undefined),