Implement Homeworld mechanics through Caladan reinforcement checkpoint
Connect typed Homeworld custody, transport, battle, income, revival and Caladan reinforcement flows with private multiplayer recovery and controls. Preserve the optimized test workflow and keep unfinished rules modes gated. Verified with 3682 offline tests, typecheck, lint, production build and 40 HTTP tests; existing saved games remain unchanged.
This commit is contained in:
1 parent
3be49512f7
commit
28ba1618ba
266 files changed
+47680
-16851
No files matched your search
@@ -28,6 +28,7 @@ export function MobileStronghold({
|
||||
}) {
|
||||
const pointer = g.mobileStronghold?.location;
|
||||
const placement = !pointer;
|
||||
const blocked = !placement ? g.homeworldMobility?.mobileStrongholdBlocked : null;
|
||||
const [destination, setDestination] = useState('polar_sink:0');
|
||||
const [route, setRoute] = useState<string[]>(pointer ? [pointer] : []);
|
||||
const [collect, setCollect] = useState(true);
|
||||
@@ -51,11 +52,12 @@ export function MobileStronghold({
|
||||
);
|
||||
const valid =
|
||||
placement ||
|
||||
(route.length > 1 &&
|
||||
(!blocked && route.length > 1 &&
|
||||
route.every((key) => splitLocation(key).sector !== g.storm) &&
|
||||
territory(splitLocation(current).territory).type !== 'stronghold');
|
||||
return (
|
||||
<div className="mobile-route">
|
||||
{blocked && <p className="notice">{blocked}</p>}
|
||||
<p>
|
||||
{placement
|
||||
? 'Point your stronghold at a sector in any non-stronghold territory. Placement does not collect spice.'
|
||||
|
||||
Reference in new issue
Block a user