1
0
Fork 0
polaris-task-force/src/components/frontend/blocks
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
..
AppSidebar.tsx feat(minigames): drive the nav and period scoring from the registry 2026-10-11 17:06:52 -04:00
NavCore.tsx feat(map): world map picker entry, intel fields, node icons, generic markers 2026-09-21 20:47:46 -04:00
NavMinigames.tsx feat(minigames): add Call for Fire: Versus multiplayer artillery duel 2026-10-11 21:55:39 -04:00
NavProjects.tsx style(frontend): format frontend feature components 2026-08-16 23:27:51 -04:00
NavSecondary.tsx style(frontend): format frontend feature components 2026-08-16 23:27:51 -04:00
NavUser.tsx refactor(nav): sidebar minigames group, inline admin link, hidden map entry 2026-09-16 23:14:16 -04:00
sidebarData.ts feat(contributions): add crowdsourced XP reward system 2026-10-09 16:30:05 -04:00
XPDisplay.tsx feat(xp): show experience descriptions 2026-08-27 18:36:11 -04:00