85637e353a
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m20s
- Add missing elements to mana store migration: when loading an old save
that doesn't have all elements from ELEMENTS (e.g. saves from before
composite/exotic elements were added), the migration now creates the
missing elements with proper default state
- Harden unlockElement action to handle the case where an element doesn't
exist in the store (creates a valid element state instead of corrupting
with { unlocked: true } missing current/max/baseMax)
- Add regression tests (14 tests) for Earth element unlock and migration
scenarios including old saves with missing elements
Fixes #338, #339