Connect classic Nexus to normal Banker income

This commit is contained in:
Quintine committed 2026-10-13 20:44:21 +11:00
1 parent a9b26fd88c
commit cd580d27c8
12 files changed
+290 -11

No files matched your search

+5 -3
View File
@@ -34,7 +34,7 @@ export function noOtherLeaderSkillModules(game: LeaderSkillProfile): boolean {
!game.discoveryEnabled && !game.strongholdCards && !game.techTokens && !game.ecazTreachery;
}
function nexusLeaderSkillModulesSupported(game: LeaderSkillProfile, assassination = false, discovery = false, betrayal = false): boolean {
function nexusLeaderSkillModulesSupported(game: LeaderSkillProfile, assassination = false, discovery = false, betrayal = false, bankerIncome = false): boolean {
return !!game.nexusCards && typeof game.advanced === 'boolean' &&
!!game.players && game.players.length >= 2 && game.players.length <= 6 &&
((discovery && game.discoveryEnabled === true) ||
@@ -49,12 +49,14 @@ function nexusLeaderSkillModulesSupported(game: LeaderSkillProfile, assassinatio
(!game.guildBetrayalPreview || betrayal) && !game.richeseBetrayalPreview &&
!game.nexusIxianReplacementPreview && !game.nexusIxianBetrayalPreview &&
!game.nexusHarkonnenBetrayalPreview &&
!game.spiceBankerIncomePreview;
(!game.spiceBankerIncomePreview || bankerIncome);
}
/** Fresh classic Nexus/Skills, optionally Homeworlds/Discovery/Tech/Advanced Strongholds. */
export function classicNexusLeaderSkillsProfile(game: LeaderSkillProfile): boolean {
if (game.expansions.length || !nexusLeaderSkillModulesSupported(game, false, true)) return false;
if (game.expansions.length || !nexusLeaderSkillModulesSupported(game, false, true, false, true)) return false;
if (game.spiceBankerIncomePreview && (game.homeworlds || game.discoveryEnabled ||
game.discoveries || game.discoveryStash || game.greatMaker)) return false;
const players = game.players!;
for (let i = 0; i < players.length; i++) {
for (let j = 0; j < i; j++) if (players[j].faction === players[i].faction) return false;