feat: add frame

This commit is contained in:
2026-07-08 12:34:21 +03:30
parent 525cd554ef
commit b5420bac21
12 changed files with 280 additions and 13 deletions
+4 -4
View File
@@ -75,13 +75,13 @@ func (g gameSettler) RecordGameResult(userID int64, won bool) {
g.eco.AddTournamentPoints(context.Background(), userID, won)
}
// PlayerProfile سکه، نشانِ رتبه و آواتارِ بازیکن را برای نمایش سرِ میز برمی‌گرداند.
func (g gameSettler) PlayerProfile(userID int64) (int64, string, string) {
// PlayerProfile سکه، نشانِ رتبه، آواتار و قابِ بازیکن را برای نمایش سرِ میز برمی‌گرداند.
func (g gameSettler) PlayerProfile(userID int64) (int64, string, string, string) {
p, err := g.eco.GetProfile(context.Background(), userID)
if err != nil || p == nil {
return 0, "", ""
return 0, "", "", ""
}
return p.Coins, p.RankTier, p.Avatar
return p.Coins, p.RankTier, p.Avatar, p.SelectedFrame
}
// ChargeTicket یک بلیت برای بُرِ مجدد مصرف می‌کند (خطا اگر بلیت کافی نباشد).