1
0
Fork 0
polaris-task-force/src/components
Z8MB1E 005ff0e5df feat(minigames): add Call for Fire: Versus multiplayer artillery duel
Head-to-head artillery duel in a new "multiplayer" registry category
(out of periods). Each operator hides a fire-base fleet on a 10x10 grid,
then takes turns calling fire: the first mission is a grid designation,
every later shot adjusts from that operator's last impact using the
single-player range/deflection controls. First to reduce every enemy
emplacement wins; a cap decides on emplacements then cells.

Pure engine in src/lib/minigames/call-for-fire-versus (engine, views,
types, constants) is client-safe and unit-tested. The server-only
registry mirrors the blackjack table pattern (globalThis-anchored Map,
lobby, per-turn timeout, expiry sweep, single-instance only); its views
are built per viewer so the opponent's fleet layout never leaves the
server. The client polls the match snapshot (the in-memory SSE bus is
unreliable across dev module copies). Rewards on completion update the
callForFireVersus profile group, pay XP and chips, and emit
minigame:call-for-fire-versus.

Wires the game into the registry (new multiplayer category + enum
migration), the sidebar grouping, the command palette, and the profile
XP aggregation. The registry row seed is split into its own migration
because Postgres forbids using a freshly added enum value in the same
transaction.

Verified: 21 new tests (engine + registry) plus the wider minigame suite
pass; tsc clean; a live two-player award run confirmed XP, chips, and
the event.
2026-10-11 21:55:39 -04:00
..
admin feat(minigames): add an admin close/reopen control for periods 2026-10-11 17:06:52 -04:00
awards/ribbonDesign feat(awards): add ribbon submissions collection, design validation and migration 2026-09-11 03:25:59 -04:00
command-palette feat(minigames): add Call for Fire: Versus multiplayer artillery duel 2026-10-11 21:55:39 -04:00
frontend feat(minigames): add Call for Fire: Versus multiplayer artillery duel 2026-10-11 21:55:39 -04:00
graphics feat: application staging deployment (ensure better commits after this) 2025-12-15 01:14:30 -05:00
static fix(version): compose version+commit label when git describe is unavailable 2026-09-06 17:23:03 -04:00
ui feat(missions): add a per-mission planning map with Arma markers 2026-10-04 02:53:21 -04:00