Compose World Skills cards with selected ordinary decks

This commit is contained in:
Quintine committed 2026-10-17 23:07:39 +11:00
1 parent b9330d489e
commit 01985af36b
36 files changed
+1201 -283

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ export type IndependentCardModulesOptions = {
};
/** Select only the original undealt fourteen-card lottery, never assignments. */
function skillOfferRolls(game: Game, training: IndependentCardModulesOptions['training']): number[] {
export function skillOfferRolls(game: Game, training: IndependentCardModulesOptions['training']): number[] {
const source = LEADER_SKILL_CARDS.map(card => card.id), selected: LeaderSkillId[] = [];
for (const player of game.players) {
const skill = training?.[player.faction] ?? source.find(card => !selected.includes(card))!;