Integrate full funded Guild Nexus Betrayal

This commit is contained in:
Quintine committed 2026-10-01 10:57:05 +10:00
1 parent d3bf12fcd8
commit 8a56299155
28 files changed
+3005 -58

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import type { Action, GameView } from './engine';
/** Public acknowledgement never depends on a hidden card or another seat's
* resources. Only the server's own-seat offer authorizes taking the payment. */
export function botNexusGuildBetrayalActions(game: GameView): Action[] {
const reaction = game.guildBetrayalReaction;
if (game.status !== 'playing' || !reaction?.event ||
!reaction.canPass || reaction.hasPassed) return [];
const own = game.players.find((player) => player.id === game.me);
if (!(own?.bot ?? own?.autopilot)) return [];
return [{
type: reaction.canUse && !reaction.blocked ? 'guildBetrayalUse' : 'guildBetrayalPass',
event: reaction.event,
}];
}