reset-world restores the original save (reset point in data/save_original), set-reset-point; per-player needs stored and returned; tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 17:48:28 +02:00
co-authored by Claude Opus 5.5
parent bd45a6e70c
commit f23671704d
6 changed files with 162 additions and 8 deletions
+3 -1
View File
@@ -87,9 +87,11 @@ if (Array.IndexOf(args, "--import-save") >= 0)
copied++;
}
GameServer.Log($"Imported {copied} save files from {source}");
// Neuer Spielstand = alte Änderungen passen nicht mehr dazu
// Neuer Spielstand = alte Änderungen passen nicht mehr dazu, und er ist der neue Reset-Punkt
string world = Path.Combine(dataDir, "world.json");
if (File.Exists(world)) File.Delete(world);
string original = Path.Combine(dataDir, "save_original");
if (Directory.Exists(original)) Directory.Delete(original, true);
}
// Lizenzschlüssel beim Keymaster prüfen