Turn timer + auto-play, disconnect/reconnect, cosmetics, queue & paid plan

- Turn timer (20s) for play/trump; system auto-plays a smart move on timeout
- Disconnect handling (mock): wait-for-return countdown, system covers turns
- Cosmetics: titles, card-back styles, custom profile-image upload, badges;
  pickers in Profile; shop sells card styles; reward modal shows new titles
- Paid plan (pro): free players queue when server busy, pro skips; upgrade flow
- OnlineService extended (upgradePlan, richer profile patch); mock implements
  queue + plans; gamification adds TITLES + CARD_STYLES

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-04 10:49:54 +03:30
parent 5776036d78
commit 13ec0d4300
16 changed files with 682 additions and 61 deletions
+5 -1
View File
@@ -87,8 +87,12 @@ function baseProfile(): UserProfile {
games: 0, wins: 0, losses: 0, kotsFor: 0, kotsAgainst: 0,
tricks: 0, bestWinStreak: 0, currentWinStreak: 0,
},
plan: "free",
ownedAvatars: ["a-fox"],
ownedThemes: ["royal"],
ownedCardStyles: ["classic"],
ownedTitles: ["novice"],
title: "novice",
cardStyle: "classic",
achievements: {},
unlocked: [],
createdAt: 0,