update_character_sheet
Update a fantasy gamebook character sheet by patching scalars and lists, merging sub-dicts for skill, stamina, and luck, while validating invariants and preserving state on error.
Instructions
Patch the character sheet. Scalars/lists are replaced; attribute sub-dicts (skill/stamina/luck) are merged. Invariants are validated; on error the state is left unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gold | No | ||
| luck | Yes | ||
| name | Yes | ||
| alive | No | ||
| skill | Yes | ||
| stamina | Yes | ||
| inventory | No | ||
| conditions | No | ||
| provisions | No |