feat: add versioned saves and ASCII migration

This commit is contained in:
goose
2026-10-03 22:42:00 -04:00
parent 2d7b24167a
commit cd84273565
18 changed files with 937 additions and 4 deletions
+52
View File
@@ -0,0 +1,52 @@
{
"version": 7,
"seed": "ASCII-G1-FIXTURE",
"difficulty": "veteran",
"permadeath": true,
"current_floor": 2,
"player": {
"id": "player",
"name": "Migrated Archivist",
"x": 4,
"y": 5,
"hp": 11,
"max_hp": 15,
"attack": 3,
"gold": 44
},
"levels": {
"0": {
"seed": 1,
"floor_number": 0,
"map": {
"size": [1, 1],
"tiles": [{"cell": [0, 0], "kind": 0, "room_id": ""}]
},
"rooms": []
},
"2": {
"seed": 3,
"floor_number": 2,
"map": {
"size": [1, 1],
"tiles": [{"cell": [0, 0], "kind": 0, "room_id": ""}]
},
"rooms": []
}
},
"flags": {"terminal_seen": true},
"quests": {"quest_find_lighter": {"state": "active"}},
"achievements": {"first_kill": true},
"audience": {"followers": 12},
"floor_deadline": {"2": {"turns_remaining": 40}},
"companion": null,
"recruits": [],
"recap": {},
"faction_war": {},
"options": {"colors": false},
"inventory": [],
"playtime_seconds": 33.5,
"updated_at": 1234.0,
"future_mod_payload": {"must": "be reported"},
"retired_ascii_option": true
}