'use client'; import type { Action, GameView } from '@/game/engine'; import { discoveryStormActions } from '@/game/discovery-storm-options'; import { Button } from './ui/button'; export function DiscoveryStormDecision({ game, act, busy, }: { game: GameView; act: (action: Action) => void; busy: boolean; }) { const actions = discoveryStormActions(game), offer = game.ecologicalStorm; if (!offer || !actions.length) return null; const me = game.players.find((player) => player.id === game.me)!; return (

Your forces occupy Ecological Testing Station. The storm currently moves {offer.base} sectors. You may decrease or increase this by one, or keep the current movement.

Prototype ordering: each occupying faction chooses once in storm order; adjustments are cumulative. This choice cannot change Weather Control.

{offer.options.map((option) => { const action = actions.find( (candidate) => candidate.delta === option.delta, )!; return ( ); })}
); }