Implement craft success animation.

This commit is contained in:
John Preston
2026-01-27 18:08:50 +04:00
parent 1a7b934af9
commit b67ac293fd
12 changed files with 1802 additions and 1246 deletions
@@ -1683,9 +1683,9 @@ SessionController::SessionController(
});
#if _DEBUG // TEST: Auto-open craft box on startup
constexpr auto kGiftsCount = 4;
constexpr auto kGiftsCount = 1;
crl::on_main(this, [=] {
if (rand() % 2 == 0) {
if (rand() % 2 < 0) {
return;
}
const auto user = session->user();