polish(streak): add reward milestones and clean Krea2 workflow
Fill the Daily Streak screen with 3-day and 7-day frame progress, and remove the stale template text from the Krea2 CLIPTextEncode node.
This commit is contained in:
1 parent
78f1dbaa31
commit
c65a33b5f0
4 files changed
+5236
-2
No files matched your search
@@ -321,6 +321,11 @@ func _test_profile(main, save) -> void:
|
||||
await process_frame
|
||||
_check(main.current == "streak", "Profile should open the streak screen")
|
||||
_check(main.streak.week_row.get_child_count() == 7, "streak screen should show a seven-day week")
|
||||
var best: int = int(save.best_streak())
|
||||
var regular_text := "Unlocked" if best >= 3 else "%d to go" % (3 - best)
|
||||
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.current_label.text == str(save.daily_streak()), "streak number should match the save")
|
||||
main.show_screen("profile", false)
|
||||
|
||||
|
||||
Reference in new issue
Block a user