feat: sync and patch all content stats on existing saves #130

Merged
naomi merged 3 commits from chore/more-feedback into main 2026-03-24 16:01:48 -07:00
Owner

Summary

  • Sync New Content now injects missing entries AND patches canonical fields on all existing entries to match current defaults
  • Adventurers: stats (baseCost, combatPower, goldPerSecond, essencePerSecond, name, class, level)
  • Quests: duration, prerequisites, combat requirement, rewards
  • Bosses: HP, damage, rewards, prestige requirement, upgrade rewards
  • Zones: unlock conditions (boss/quest required)
  • Upgrades: multiplier, costs
  • Equipment: bonus, cost, set membership
  • Achievements: condition, reward
  • Crafting: multipliers recomputed from craftedRecipeIds so recipe balance changes apply retroactively

Closes #126

Test plan

  • On an existing save, click Sync New Content and verify the notification reports patched counts for all content types
  • Verify that rebalanced adventurer/boss/upgrade stats are reflected in the UI after syncing
  • Verify that player-owned state (counts, unlock status, boss HP, quest status) is preserved after syncing
  • Verify crafting multipliers are correct after syncing if any recipes were previously crafted

This issue was created with help from Hikari~ 🌸

## Summary - Sync New Content now **injects** missing entries AND **patches canonical fields** on all existing entries to match current defaults - Adventurers: stats (baseCost, combatPower, goldPerSecond, essencePerSecond, name, class, level) - Quests: duration, prerequisites, combat requirement, rewards - Bosses: HP, damage, rewards, prestige requirement, upgrade rewards - Zones: unlock conditions (boss/quest required) - Upgrades: multiplier, costs - Equipment: bonus, cost, set membership - Achievements: condition, reward - Crafting: multipliers recomputed from `craftedRecipeIds` so recipe balance changes apply retroactively Closes #126 ## Test plan - [ ] On an existing save, click Sync New Content and verify the notification reports patched counts for all content types - [ ] Verify that rebalanced adventurer/boss/upgrade stats are reflected in the UI after syncing - [ ] Verify that player-owned state (counts, unlock status, boss HP, quest status) is preserved after syncing - [ ] Verify crafting multipliers are correct after syncing if any recipes were previously crafted ✨ This issue was created with help from Hikari~ 🌸
hikari added 5 commits 2026-03-24 14:47:05 -07:00
Closes #125
Resolves #127
fix: return authoritative materials from craft API to prevent client desync
CI / Lint, Build & Test (pull_request) Failing after 1m15s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m16s
e808d92909
Closes #128
test: add coverage for sync-new-content and explore claimable endpoints
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m4s
CI / Lint, Build & Test (pull_request) Successful in 1m10s
050e34e6cd
fix: patch adventurer stats on sync so rebalances apply to existing saves
CI / Lint, Build & Test (pull_request) Failing after 1m0s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m5s
b3913cef52
Sync New Content now updates baseCost, class, combatPower, essencePerSecond,
goldPerSecond, level, and name for all existing adventurer entries to match
the current defaults, while preserving count and unlocked state.

Closes #126
hikari added 1 commit 2026-03-24 15:10:17 -07:00
feat: patch all content stats on sync to keep saves up to date
CI / Lint, Build & Test (pull_request) Failing after 1m2s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m5s
2a3c20dc45
Sync New Content now updates canonical fields on all existing entries
to match current defaults: quests (duration, prerequisites, combat
requirement), bosses (HP, damage, rewards, prestige requirement), zones
(unlock conditions), upgrades (costs, multiplier), equipment (bonus,
cost, set), and achievements (condition, reward). Crafting multipliers
are also recomputed from craftedRecipeIds so recipe balance changes
apply to existing saves.
hikari changed title from fix: patch adventurer stats on sync for rebalanced saves to feat: sync and patch all content stats on existing saves 2026-03-24 15:10:54 -07:00
hikari force-pushed chore/more-feedback from 2a3c20dc45 to e7f0a9d537 2026-03-24 15:14:22 -07:00 Compare
hikari added 1 commit 2026-03-24 15:50:26 -07:00
fix: expose new sync patch counts from game context
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m5s
CI / Lint, Build & Test (pull_request) Successful in 1m10s
5c89b24692
Co-Authored-By: Hikari <hikari@nhcarrigan.com>
naomi merged commit b48beef474 into main 2026-03-24 16:01:48 -07:00
naomi deleted branch chore/more-feedback 2026-03-24 16:01:48 -07:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/elysium#130