Skip to content

fix: normalise legacy items missing mark/modifiers fields on load#1

Open
raman78 wants to merge 1 commit intoShinga13:mainfrom
raman78:fix/item-normalization-legacy-builds
Open

fix: normalise legacy items missing mark/modifiers fields on load#1
raman78 wants to merge 1 commit intoShinga13:mainfrom
raman78:fix/item-normalization-legacy-builds

Conversation

@raman78
Copy link
Copy Markdown

@raman78 raman78 commented Mar 28, 2026

Builds saved before the `mark`/`modifiers` fields were introduced crash when loaded because `slot_equipment_item` (via `add_equipment_tooltip_header`) expects these keys to be present.

Add `setdefault` guards in `load_equipment_cat` so old saves are silently upgraded on first load — no data is lost, the fields are initialised to their default empty values.

Builds saved before the mark/modifiers fields were introduced crash
when loaded because slot_equipment_item (via add_equipment_tooltip_header)
expects these keys to be present.

Add setdefault guards in load_equipment_cat so old saves are silently
upgraded on the first load — no data is lost, the fields are just
initialised to their default empty values.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant