Implement more QoL features and rebalances

This commit is contained in:
2026-10-25 02:16:30 +02:00
parent 0578913451
commit 53f831d91e
220 changed files with 14700 additions and 420 deletions
+3 -1
View File
@@ -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