fix: patch adventurer stats on sync so rebalances apply to existing saves

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
This commit is contained in:
2026-03-24 14:46:34 -07:00
committed by Naomi Carrigan
parent 6e573bea14
commit b275b7878c
4 changed files with 121 additions and 33 deletions
+6
View File
@@ -4,6 +4,7 @@
* @license Naomi's Public License
* @author Naomi Carrigan
*/
/* eslint-disable max-lines -- API types file grows with each new endpoint */
import type {
EquipmentBonus,
EquipmentRarity,
@@ -468,6 +469,11 @@ interface SyncNewContentResponse {
*/
adventurersAdded: number;
/**
* Number of existing adventurer entries whose stats were patched to match current defaults.
*/
adventurerStatsPatched: number;
/**
* Number of upgrades added to the save.
*/