mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-12-02 11:54:04 +01:00
feat: free-play + dual-leaderboard frontend
- Leaderboard panel: two boards via tabs — 🏅 Hall of Champions (paid) and 🪙 Pleb (free) — default Champions; passes board= to /api/leaderboard and retitles per board. - PaymentUI: the Free button now shows whenever free play is offered (instance free-only OR free-as-a-choice via freePlayEnabled), labelled "Play Free / no payout / Pleb leaderboard" on paid instances, and emits the play_free event (records game_mode=FREE). Replaces an emit of the dead 'enter_game' event. - Server game_mode_info payload now includes freePlayEnabled so the client can show the choice. Full suite: 22 suites / 158 tests.
This commit is contained in:
@@ -1149,6 +1149,7 @@ class GameModeManager {
|
||||
creditPackages: creditPackages,
|
||||
creditsPayoutBaseValue: this.creditsPayoutBaseValue,
|
||||
paymentsEnabled: this.paymentsEnabled,
|
||||
freePlayEnabled: this.freePlayEnabled,
|
||||
directModeEnabled: this.directModeEnabled,
|
||||
creditsModeEnabled: this.creditsModeEnabled,
|
||||
directPayoutsEnabled: this.directPayoutMultipliers.escape > 0,
|
||||
|
||||
Reference in New Issue
Block a user