feat(editor): add WPCR JSON round-trip (--export/--import-wpcr-json)

Dual encoding for actionKind (int 0..10 OR token form
covering all 11 kinds: revive/mend/feed/dismiss/tame/
beastlore/stable/untrain/rename/abandon/summon).
requiresPet and requiresStableNPC accept bool or int.
happinessRestore serializes as signed int8 (-25..+25
typical, +/-127 hard limit) — matters because Abandon's
happiness penalty (canonically -10) is negative.

All 3 presets (hunter/stable/warlock) byte-identical
roundtrip OK. CLI flag count 1204 -> 1206.
This commit is contained in:
Kelsi 2026-05-10 02:12:01 -07:00
parent cebf821205
commit 9a0309818e
3 changed files with 181 additions and 0 deletions

View file

@ -343,6 +343,7 @@ const char* const kArgRequired[] = {
"--export-wmnl-json", "--import-wmnl-json",
"--gen-pcr", "--gen-pcr-stable", "--gen-pcr-warlock",
"--info-wpcr", "--validate-wpcr",
"--export-wpcr-json", "--import-wpcr-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",