Implement Guild Nexus Cunning second shipment and recovery

This commit is contained in:
Quintine committed 2026-09-10 13:35:24 +10:00
1 parent 6ba1050a92
commit 90bf699627
27 files changed
+2657 -43

No files matched your search

+3 -2
View File
@@ -1,3 +1,4 @@
import { nexusGuildShipmentAvailable } from './nexus-guild-cunning-options';
import type { Action, GameView } from './engine';
import { HOMEWORLD_CARDS } from './homeworld-cards';
import {
@@ -50,7 +51,7 @@ export function homeworldShipmentChoice(
view.status !== 'playing' ||
view.phase !== 5 ||
view.active !== view.me ||
me.shipped
!nexusGuildShipmentAvailable(view)
) {
result.blocked = 'Use Homeworld shipment during your unused shipment turn.';
return result;
@@ -131,7 +132,7 @@ export function homeworldShipmentActions(
view.homeworldShipment.blocked ||
view.phase !== 5 ||
view.active !== me.id ||
me.shipped
!nexusGuildShipmentAvailable(view)
)
return [];
const difficulty = Math.max(0, Math.min(3, level));