From bbe1d41248780d00e401d8eb463b9b3e80f3c585 Mon Sep 17 00:00:00 2001 From: nesszerra <90105158+Finesssee@users.noreply.github.com> Date: Thu, 15 Oct 2026 22:07:34 +0700 Subject: [PATCH 1/3] Ranked duels per pair per live stream - pairRankedPerStream config (default 5, 0 = no limit) replaces the fixed 5 per 24 h - offline duels are unrated and pay nothing; past the pair limit they pay half - last ranked duel tag, !stats @name shows ranked duels left - !resetpair @a @b and the mod-page Reset pair count --- admin/index.html | 9 +++ docs/CONTRACTS.md | 40 ++++++++----- docs/DUELS.md | 15 +++-- server/channel.ts | 120 ++++++++++++++++++++++++++++++++++++--- server/game.ts | 81 +++++++++++++++++++++----- server/model.ts | 17 +++++- server/streamelements.ts | 36 ++++++++---- src/admin.ts | 45 +++++++++++++++ tests/channel.test.ts | 49 +++++++++++++++- tests/game.test.ts | 112 +++++++++++++++++++++++++++++++++--- 10 files changed, 462 insertions(+), 62 deletions(-) diff --git a/admin/index.html b/admin/index.html index 6425731..da0b236 100644 --- a/admin/index.html +++ b/admin/index.html @@ -116,6 +116,15 @@

Gift PixFray dollars to a saved fighter

+
+

Reset ranked duels for one pair

+

Two fighters get a set number of ranked duels against each other per stream (Rules tab). This gives them the full count again for this stream. Mods can also type !resetpair @name @name in chat.

+
+
+
+

+
+