Skip to content

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

Open
raman78 wants to merge 3 commits intoSTOCD:mainfrom
raman78:fix/item-normalization-legacy-builds
Open

fix: normalise legacy items missing mark/modifiers fields on load#116
raman78 wants to merge 3 commits intoSTOCD:mainfrom
raman78:fix/item-normalization-legacy-builds

Conversation

@raman78
Copy link
Copy Markdown

@raman78 raman78 commented Mar 29, 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.

Shinga13 and others added 3 commits March 26, 2025 14:58
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.

2 participants