Compose classic Leader Skills with original Tech Tokens

This commit is contained in:
Quintine committed 2026-10-04 06:01:53 +11:00
1 parent 21d71e8282
commit b71f953635
16 files changed
+1059 -22

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
import { treacheryDeck, type Card } from './cards';
import { richeseCards } from './richese-cards';
import { quoteTupileIntelligenceAnswer } from './tupile-intelligence-answer';
import {nativeExpansionLeaderSkillsProfile,noOtherLeaderSkillModules,type LeaderSkillProfile} from './leader-skill-profile';
import {classicTechLeaderSkillsProfile,nativeExpansionLeaderSkillsProfile,noOtherLeaderSkillModules,type LeaderSkillProfile} from './leader-skill-profile';
export class MentatQuestionError extends Error {}
export const MENTAT_EMPTY_HAND =
@@ -40,10 +40,10 @@ export type MentatView = {
history: Omit<MentatObservation, 'signature'>[];
};
export function mentatQuestionModeSupported(game: LeaderSkillProfile): boolean {
return noOtherLeaderSkillModules(game) &&
return (noOtherLeaderSkillModules(game) &&
(!game.expansions.length ||
(game.expansions.length === 1 && game.expansions[0] === 'choam') ||
nativeExpansionLeaderSkillsProfile(game));
nativeExpansionLeaderSkillsProfile(game))) || classicTechLeaderSkillsProfile(game);
}
function inventory(expansions: readonly string[]): Card[] {
return [