fix(v0.9): polish pass before release
Clears free mode when starting campaign/daily rooms, rebuilds levels on restore, fixes free win label, makes event claims cycle-aware and event schedule local-day based, grants VIBRATE permission, validates corrupt save values, and fixes Home scrolling, Guest Book close button, event claim contrast, achievement contrast, and difficulty modal spacing. Adds QA for these paths.
This commit is contained in:
1 parent
25c918e6a2
commit
3cdc3567f3
9 files changed
+115
-21
No files matched your search
@@ -128,6 +128,12 @@ func _test_icons() -> void:
|
||||
button.free()
|
||||
small_icon.free()
|
||||
|
||||
if FileAccess.file_exists("res://export_presets.cfg"):
|
||||
var preset_file := FileAccess.open("res://export_presets.cfg", FileAccess.READ)
|
||||
var preset_text := preset_file.get_as_text()
|
||||
preset_file.close()
|
||||
_check(preset_text.contains("permissions/vibrate=true"), "Android preset should grant VIBRATE for haptics")
|
||||
|
||||
|
||||
func _finish() -> void:
|
||||
if failures == 0:
|
||||
@@ -262,6 +268,20 @@ func _test_save_migrations(save) -> void:
|
||||
_check(not bool(save.get_setting("double_tap_place")), "an explicit false should not be overwritten")
|
||||
_check(bool(save.get_setting("patterns")), "unlisted settings should still be filled from DEFAULTS")
|
||||
|
||||
# (f) Wrong-typed settings and junk array elements are repaired.
|
||||
var wrong: Dictionary = save._default_data()
|
||||
wrong["version"] = 7
|
||||
wrong["settings"]["haptics"] = "false"
|
||||
wrong["settings"]["ui_scale"] = "large"
|
||||
wrong["settings"]["hold_seconds"] = "bad"
|
||||
wrong["completed_rooms"] = ["a", 5, {}]
|
||||
_write_save(save, wrong)
|
||||
save.load_game()
|
||||
_check(typeof(save.get_setting("haptics")) == TYPE_BOOL, "wrong-typed haptics should be repaired")
|
||||
_check(is_equal_approx(float(save.get_setting("ui_scale")), 1.0), "wrong-typed ui_scale should be repaired")
|
||||
_check(is_equal_approx(float(save.get_setting("hold_seconds")), 0.35), "wrong-typed hold_seconds should be repaired")
|
||||
_check((save.data["completed_rooms"] as Array).size() == 1, "junk room entries should be filtered")
|
||||
|
||||
_reset_to_clean(save)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user