Add supply auto-purchase and preserve save recovery state
This commit is contained in:
@@ -51,6 +51,7 @@ func run() -> void:
|
||||
expect(not runtime.restore_snapshot(bad) and runtime.create_snapshot()==intact, "missing live facility cleanliness rejects")
|
||||
var legacy: Dictionary=intact.duplicate(true)
|
||||
legacy[&"systems"][&"runtime"][&"runtime_schema_version"]=11
|
||||
preload("res://tests/fixtures/pre_auto_purchase_runtime.gd").strip_empty(legacy[&"systems"][&"runtime"])
|
||||
legacy[&"systems"][&"runtime"].erase(&"facility_cleanliness")
|
||||
expect(runtime.restore_snapshot(legacy) and runtime.facility_cleanliness.get_facility(id)["current"]==100, "v11 initializes cleanliness without guessing past dirt")
|
||||
expect(runtime.create_snapshot()[&"systems"][&"runtime"][&"weather"]==intact[&"systems"][&"runtime"][&"weather"], "v11 weather survives migration unchanged")
|
||||
|
||||
Reference in New Issue
Block a user