#160

prototype: cross-difficulty Wirt leg recipe / 跨难度维特之腿配方原型

Drafthubeiqiaowants to merge intofrom

Refs #159. Prototype only: this does not yet enable cross-difficulty legs in the game.

Add a narrowly validated local recipe-source transformer and tests. It identifies exactly one enabled Cow Portal recipe, exact leg/tbk ingredients, numinputs2, no extra output and op28 with empty/zero parameters, then clears only that cell. All other bytes/rows are preserved. Unknown conditions and ambiguous tables are rejected; input and existing output files cannot be overwritten. No original game data is included.

中文:提供维特之腿跨难度的可审阅配方源码修改原型,尚未接入生产覆盖层或安装包。不是完整功能实现,也不声称已验证保留当前难度通关校验。

Validation:4 unittest methods pass, covering byte scope, BOM/LF/CRLF, idempotence, ingredients, rejection cases and CLI overwrite protection. Literal/i18n and diff checks pass. Tests use authored fixtures only, no full game build or device run.

Blocking completion gates for maintainer AI:

  1. Inspect the actual supported3.3.94012 recipe and op28 implementation. If its parameters differ, stop; if op28 also gates completion, separate that condition rather than using this patch as-is.
  2. Prove the native cow output retains current-difficulty Baal completion, ActI camp and per-run eligibility; preserve item consumption/target difficulty and other quest recipes.
  3. Compile the modified source through the real data pipeline, include the compiled output in applicable overlay variants and verify the game loads it. No text-only overlay or guessed binary offsets.
  4. Native3×3 origin/current-difficulty matrix plus all negative eligibility cases, save reloads and item conservation.

No executable/RomFS is available here, so these gates cannot be completed in this environment. Keep draft and #159 open. Bilingual handoff: docs/qa-cow-leg-any-difficulty{,.zh-CN}.md.

Activity

1

This pull request is a draft

Merging is unavailable until it is marked ready for review.