Skip to content

Add opt-in match leaders broadcast at 100 points - #62

Open
AnarchByte0 wants to merge 1 commit into
warcon-app:mainfrom
AnarchByte0:rcob-match-leaders-v2
Open

AnarchByte0 wants to merge 1 commit into
warcon-app:mainfrom
AnarchByte0:rcob-match-leaders-v2

Conversation

@AnarchByte0

Copy link
Copy Markdown

Adds an opt-in option to Match broadcast: when an observed faction reaches 100 points, send a customizable leaders message once per recorded match. It uses the live player list for kills and cash, the kill feed for streaks, and the reported ordered rotation for the next map and weather when available. Existing rules stay disabled unless configured.

The leader announcement requires an observation while the 100-point score is visible. Missing rotation data falls back to an unknown value; the game feed must be available for streaks. Dry run does not reconstruct the leader announcement from historical player snapshots.

Validation: bun run check; bun test src/lib/server/match-leaders.test.ts src/lib/server/triggers.test.ts (69 passed). This has not been tested on a live game server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant