Add optional short alliance victory
Verify and publish checkpoint container / container (push) Successful in 11m2s
Verify and publish checkpoint container / container (push) Successful in 11m2s
This commit is contained in:
1 parent
8fb9f59106
commit
e896570f07
25 files changed
+632
-27
No files matched your search
@@ -9,7 +9,8 @@ import { gameTerritories } from './board';
|
||||
import { fighterCount } from './advisors';
|
||||
import { TECH_TOKENS } from './tech-tokens';
|
||||
import { isDiscoveryLocationId, JACURUTU_SIETCH } from './discoveries';
|
||||
import { controllerStrongholdTarget, type TwoPlayerControllers } from './two-player-controllers';
|
||||
import type { TwoPlayerControllers } from './two-player-controllers';
|
||||
import { allianceVictoryTarget } from './alliance-victory-option';
|
||||
|
||||
export type StrongholdProgress = {
|
||||
player: string;
|
||||
@@ -49,6 +50,7 @@ export function strongholdProgress(
|
||||
g: BoardContext & Pick<Game, 'techTokens'> & {
|
||||
victoryExtraStrongholds?: number;
|
||||
twoPlayerControllers?: TwoPlayerControllers;
|
||||
shortAllianceVictory?: boolean;
|
||||
},
|
||||
): { released: AdvisorRelease[]; progress: StrongholdProgress[] } {
|
||||
try {
|
||||
@@ -133,8 +135,8 @@ export function strongholdProgress(
|
||||
members.some((member) =>
|
||||
TECH_TOKENS.every(({ id }) => tech[id].owner === member),
|
||||
);
|
||||
const target = controllerStrongholdTarget(
|
||||
players.map((player) => player.id), g.twoPlayerControllers, !!partner,
|
||||
const target = allianceVictoryTarget(
|
||||
players.map((player) => player.id), g.twoPlayerControllers, !!partner, g.shortAllianceVictory,
|
||||
) + extra;
|
||||
return {
|
||||
player: id,
|
||||
|
||||
Reference in new issue
Block a user