feat(editor): add WTSK JSON round-trip (export/import sidecar)

Closes the JSON round-trip gap on the trade skill recipe
catalog format shipped last batch. --export-wtsk-json emits
all 14 scalar fields plus a dual int + name form for
profession, plus a nested reagents[] array — only non-empty
slots are emitted to keep hand-edits compact.
--import-wtsk-json zeroes the reagent slots before parsing
(so a 2-element reagents array correctly clears slots 2 and
3) and accepts profession by either int or name. Verified
byte-identical round-trip on all three preset emitters
(starter / blacksmithing / alchemy — including recipes with
3 reagent slots populated). 754 documented CLI flags.
This commit is contained in:
Kelsi 2026-05-09 19:43:16 -07:00
parent 33a7b4b3cf
commit 77384f600e
3 changed files with 158 additions and 0 deletions

View file

@ -149,6 +149,7 @@ const char* const kArgRequired[] = {
"--export-wpcn-json", "--import-wpcn-json",
"--gen-tsk", "--gen-tsk-blacksmithing", "--gen-tsk-alchemy",
"--info-wtsk", "--validate-wtsk",
"--export-wtsk-json", "--import-wtsk-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",