Integrate CHOAM Nexus Cunning Kull with source-aware costs

This commit is contained in:
Quintine committed 2026-10-01 06:06:03 +10:00
1 parent fc5cbcd720
commit 0d9d0a72d6
32 files changed
+2502 -193

No files matched your search

+7 -4
View File
@@ -7,11 +7,14 @@ export function botChoamKullActions(g: GameView): Action[] {
!offer.canDecline) return [];
const own = g.players.find((player) => player.id === g.me);
if (!(own?.bot ?? own?.autopilot)) return [];
const card = !offer.blocked && offer.target !== own.ally
? offer.cards[0]
const play = !offer.blocked && offer.target !== own.ally
? offer.plays.find((candidate) => !candidate.blocked)
: undefined;
return card
? [{ type: 'kullDecision', event: offer.event, card: card.id }]
return play
? [{
type: 'kullDecision', event: offer.event,
source: play.source, card: play.card.id,
}]
: [{ type: 'kullDecision', event: offer.event, decline: true }];
}