Connect Fremen Nexus fixed quota to native partial revival

This commit is contained in:
Quintine committed 2026-10-15 06:09:36 +11:00
1 parent 985cf85e12
commit 25996ec8a7
26 files changed
+1386 -354

No files matched your search

+4 -5
View File
@@ -1,7 +1,7 @@
import type { Action, GameView } from './engine';
/** Server-owned private offer binds the selected physical group and turn. */
export function nexusFremenRevivalAction(game: GameView, elite: number): Action | null {
/** Enable the server-owned phase quota; original revival controls choose the forces. */
export function nexusFremenRevivalAction(game: GameView): Action | null {
const offer = game.nexusFremenRevival;
const owner = game.players.find(player => player.id === game.me);
if (!offer || !owner || owner.ally || game.nexusCards?.card !== 'fremen' ||
@@ -9,7 +9,6 @@ export function nexusFremenRevivalAction(game: GameView, elite: number): Action
game.status !== 'playing' || game.phase !== 4 ||
game.response || game.decision || game.truthtrance || game.phaseOpening ||
game.automaticContinuationPending || game.nexusCards.waiting.length ||
game.nexusTraitors?.pending || offer.blocked ||
!Number.isSafeInteger(elite) || !offer.eliteOptions.includes(elite)) return null;
return { type: 'nexusFremenRevive', event: offer.event, elite };
game.nexusTraitors?.pending || offer.blocked || offer.maxForces < 1) return null;
return { type: 'nexusFremenRevival', event: offer.event };
}