Connect bounded Richese Nexus Cunning No-Field pair
This commit is contained in:
1 parent
0c6d28a706
commit
763749f25e
14 files changed
+758
-31
No files matched your search
@@ -22,6 +22,11 @@ export function botHomeworldShipmentPaymentAllowed(g: GameView, action: Action):
|
||||
const me = g.players.find(p => p.id === g.me)!;
|
||||
const to = String(action.territory);
|
||||
const amount = action.noField ? 1 : action.forces ? Object.values(action.forces as Record<string, number>).reduce((sum, n) => sum + n, 0) : Number(action.amount);
|
||||
if (action.revealedToken !== undefined) {
|
||||
const offer = g.nexusRicheseCunning;
|
||||
return action.noField !== undefined && !g.homeworlds && !!offer && !offer.blocked &&
|
||||
action.nexus === offer.event;
|
||||
}
|
||||
const guildSource = action.nexus !== undefined && action.nexus === g.nexusGuildSecretAlly?.event;
|
||||
const nexusQuote = action.nexus === undefined ? null : guildSource ? nexusGuildSecretAllyQuote(g, to, amount) : nexusRicheseQuote(g, to, amount);
|
||||
if (action.nexus !== undefined && (!nexusQuote || (!guildSource && (action.nexus !== g.nexusRichese?.event || action.type !== 'ship')) || action.noField !== undefined)) return false;
|
||||
|
||||
Reference in new issue
Block a user