Implement more QoL features and rebalances
This commit is contained in:
@@ -16,7 +16,7 @@ namespace KernelPanic.Meta
|
||||
public sealed class SaveService
|
||||
{
|
||||
private const string SaveFileName = "kernel-panic-save.json";
|
||||
public const int CurrentSchemaVersion = 5;
|
||||
public const int CurrentSchemaVersion = 8;
|
||||
private static readonly object FileLock = new();
|
||||
|
||||
public string SavePath { get; }
|
||||
@@ -280,6 +280,7 @@ namespace KernelPanic.Meta
|
||||
public int rootCredits = GachaService.TestRootCreditsBalance;
|
||||
public int commitsBalance;
|
||||
public int bandwidthBalance;
|
||||
public DailyQuestState dailyQuests = new();
|
||||
// Legacy conflated balance. Older builds used this for both Commits and Bandwidth.
|
||||
// Migration preserves it as Bandwidth and starts Commits at 0 because the source is ambiguous.
|
||||
public int standardPullCurrency;
|
||||
@@ -321,6 +322,7 @@ namespace KernelPanic.Meta
|
||||
|
||||
public void EnsureLists()
|
||||
{
|
||||
dailyQuests ??= new DailyQuestState();
|
||||
if (tutorialCheckpoint != null && string.IsNullOrEmpty(tutorialCheckpoint.runId)) tutorialCheckpoint = null;
|
||||
// JsonUtility materializes null inline serializable objects as empty instances.
|
||||
// Preserve malformed/nonempty checkpoints for an explicit recovery error, but
|
||||
|
||||
Reference in New Issue
Block a user