feat: resume exploration exactly and harden campaign saves
This commit is contained in:
@@ -128,6 +128,7 @@ try {
|
||||
delete legacySave.acknowledgedVictoryRewardCategories;
|
||||
delete legacySave.dismissedVictoryRewardNoticeBattleIds;
|
||||
values.set(campaignStorageKey, JSON.stringify(legacySave));
|
||||
values.set(`${campaignStorageKey}:slot-${legacySave.activeSaveSlot}`, JSON.stringify(legacySave));
|
||||
const migratedLegacySave = loadCampaignState();
|
||||
assert(
|
||||
migratedLegacySave.acknowledgedVictoryRewardBattleIds.includes(scenario.id) &&
|
||||
@@ -150,6 +151,7 @@ try {
|
||||
'unknown-battle'
|
||||
];
|
||||
values.set(campaignStorageKey, JSON.stringify(partialSave));
|
||||
values.set(`${campaignStorageKey}:slot-${partialSave.activeSaveSlot}`, JSON.stringify(partialSave));
|
||||
const normalizedPartialSave = loadCampaignState();
|
||||
assert(
|
||||
JSON.stringify(normalizedPartialSave.acknowledgedVictoryRewardCategories) === JSON.stringify({ [scenario.id]: ['equipment'] }) &&
|
||||
|
||||
Reference in New Issue
Block a user