Integrate Harkonnen Nexus traitor retirement and Mentat replacement
This commit is contained in:
1 parent
0c25aad62f
commit
1cf8ff72c7
25 files changed
+3049
-8
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import type { Action, GameView } from './engine';
|
||||
|
||||
/** All four policies acknowledge only their own legal view. Neither the native
|
||||
* source nor any rival card or private traitor estimate participates. */
|
||||
export function botNexusHarkonnenBetrayalActions(game: GameView): Action[] {
|
||||
const reaction = game.nexusHarkonnenBetrayalReaction;
|
||||
if (game.status !== 'playing' || game.phase !== 6 || !reaction?.event ||
|
||||
!reaction.canPass || reaction.hasPassed || game.roomControl?.paused || game.roomControl?.closed ||
|
||||
game.automaticContinuationPending || game.truthtrance || game.response || game.decision ||
|
||||
game.phaseOpening || game.nexusCards?.waiting.length || game.nexusTraitors?.pending) return [];
|
||||
const own = game.players.find((player) => player.id === game.me);
|
||||
if (!(own?.bot ?? own?.autopilot)) return [];
|
||||
return [{
|
||||
type: reaction.canUse && !reaction.blocked ? 'nexusHarkonnenBetrayalUse' : 'nexusHarkonnenBetrayalPass',
|
||||
event: reaction.event,
|
||||
}];
|
||||
}
|
||||
Reference in new issue
Block a user