feat(meowdoku): identity, gifts, achievements and wallpapers
Local-only v0.8.0 build. Adds player name/ID, achievements, claimable 7-day gift, daily share/stats, saved boards, 2048px rat-track wallpapers, difficulty/volume settings, and save v6. Not pushed or published.
This commit is contained in:
1 parent
5c00b35e90
commit
6d302f5cb9
21 files changed
+623
-41
No files matched your search
@@ -111,6 +111,12 @@ func _test_settings(main, save) -> void:
|
||||
_check(not main.music_player.playing, "music should stop when disabled")
|
||||
save.set_setting("music", true)
|
||||
_check(main.music_player.playing, "music should play when enabled")
|
||||
_check(main.settings_sheet.music_volume_slider != null, "music volume slider missing")
|
||||
_check(main.settings_sheet.difficulty_button.text.find("Difficulty") >= 0, "difficulty control missing")
|
||||
main.settings_sheet._cycle_difficulty()
|
||||
_check(str(save.get_setting("difficulty")) == "easy", "difficulty should cycle")
|
||||
save.set_setting("difficulty", "normal")
|
||||
_check(main.background_rect.texture != null, "wallpaper texture should load")
|
||||
|
||||
# Changes made through SaveGame must be reflected after an explicit refresh.
|
||||
save.set_setting("patterns", false)
|
||||
@@ -246,6 +252,14 @@ func _test_profile(main, save) -> void:
|
||||
if profile == null:
|
||||
return
|
||||
|
||||
_check(profile.player_id_label.text.begins_with("RAT-"), "profile should show player ID")
|
||||
_check(profile.achievements_box.get_child_count() == 8, "profile should list achievements")
|
||||
profile._show_rename()
|
||||
profile.name_input.text = "Ahri"
|
||||
profile._save_name()
|
||||
_check(save.player_name() == "Ahri", "name edit should save")
|
||||
save.set_player_name("Innkeeper")
|
||||
|
||||
profile._set_tab("frame")
|
||||
await process_frame
|
||||
var expected: int = frames.all().size()
|
||||
@@ -331,6 +345,10 @@ func _test_profile(main, save) -> void:
|
||||
var night_text := "Unlocked" if best >= 7 else "%d to go" % (7 - best)
|
||||
_check(main.streak.regular_milestone.text == regular_text, "regular milestone should match best streak")
|
||||
_check(main.streak.night_milestone.text == night_text, "night owl milestone should match best streak")
|
||||
_check(main.streak.stats_label.text.find("daily rooms solved") >= 0, "streak should show total dailies")
|
||||
_check(main.streak.countdown_label.text.find("Next room") >= 0, "streak should show next-daily countdown")
|
||||
main.streak._share_result()
|
||||
_check(main.streak.gift_status.text.find("clipboard") >= 0, "share result should confirm copy")
|
||||
_check(main.streak.current_label.text == str(save.daily_streak()), "streak number should match the save")
|
||||
main.show_screen("profile", false)
|
||||
|
||||
@@ -438,6 +456,16 @@ func _restore_defaults(save) -> void:
|
||||
save.set_setting("reduce_motion", false)
|
||||
save.set_setting("hold_seconds", 0.35)
|
||||
save.set_setting("double_tap_place", true)
|
||||
save.set_setting("music", true)
|
||||
save.set_setting("music_volume", 0.7)
|
||||
save.set_setting("sfx", true)
|
||||
save.set_setting("sfx_volume", 0.8)
|
||||
save.set_setting("difficulty", "normal")
|
||||
save.set_player_name("Innkeeper")
|
||||
save.data["achievements"] = {}
|
||||
save.data["gift_claimed"] = []
|
||||
save.data["saved_boards"] = {}
|
||||
save.select_theme("cream")
|
||||
save.save_game()
|
||||
_check(save.rooms_completed() == 0, "save progress should be restored")
|
||||
_check(save.daily_data() == save._default_daily(), "save daily should be restored")
|
||||
|
||||
Reference in new issue
Block a user