Compose World Skills cards with selected ordinary decks
This commit is contained in:
1 parent
b9330d489e
commit
01985af36b
36 files changed
+1201
-283
No files matched your search
@@ -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))!;
|
||||
|
||||
Reference in new issue
Block a user