Connect Kull bid answers and group transport
Verify and publish checkpoint container / container (push) Successful in 12m6s
Verify and publish checkpoint container / container (push) Successful in 12m6s
This commit is contained in:
1 parent
420943b890
commit
f667383565
16 files changed
+438
-26
No files matched your search
+4
-4
@@ -16958,7 +16958,8 @@ function bidQuestionWindow(g: Game): boolean {
|
||||
function phaseBidWitnesses(g: Game, p: Player): PhaseBidOpportunity[] {
|
||||
if (g.status !== 'playing' || !phaseBidPromiseModeSupported(g) || g.phase > 3) return [];
|
||||
const maximum = (spent = 0, spentAid = 0, canUseKarama = true) => {
|
||||
if (canUseKarama && karamaCard(g, p, undefined, 'auction-free-purchase')) return Number.MAX_SAFE_INTEGER;
|
||||
if (canUseKarama && (!g.kullPreview || p.faction === 'choam') &&
|
||||
karamaCard(g, p, undefined, 'auction-free-purchase')) return Number.MAX_SAFE_INTEGER;
|
||||
return Math.max(0, uncommittedSpice(g, p) - spent + Math.max(0, (aidFor(g, p)?.amount ?? 0) - spentAid));
|
||||
};
|
||||
if (g.phase < 3) {
|
||||
@@ -38276,7 +38277,7 @@ function ordinaryGuildTransportFullCost(g: Game, p: Player, frame: GuildTranspor
|
||||
const guild = byFaction(g, 'guild');
|
||||
if (!guild ||
|
||||
(p.id !== guild.id && !(p.ally === guild.id && guild.ally === p.id) &&
|
||||
!(coalitionFundingAvailable(g, p) && guildGroupAlly(g, p))) ||
|
||||
!guildGroupAlly(g, p)) ||
|
||||
g.karamaShipping?.player === p.id ||
|
||||
(g.guildRateBlocked?.turn === g.turn && g.guildRateBlocked.player === p.id))
|
||||
return null;
|
||||
@@ -38437,8 +38438,7 @@ function nativeGuildTransportPermission(g: Game, p: Player): boolean {
|
||||
if (guildTransportCanceled(g, p.id)) return false;
|
||||
if (p.faction === 'guild') return true;
|
||||
const guild = byFaction(g, 'guild');
|
||||
return !!guild && (p.ally === guild.id && guild.ally === p.id ||
|
||||
coalitionFundingAvailable(g, p) && guildGroupAlly(g, p));
|
||||
return !!guild && (p.ally === guild.id && guild.ally === p.id || guildGroupAlly(g, p));
|
||||
}
|
||||
function validateGuildTransportForCommit(
|
||||
g: Game, p: Player, frame: GuildTransportOrder, fromReserves: boolean, guildSecretEvent?:string,
|
||||
|
||||
Reference in new issue
Block a user